nginx重写规则,过滤某些URLif ($uri ~* ".*(admin){0}.*product_id=(\d+)$") {set $id $2;rewrite ^/([^?]*) /product-$id.html? permanent;}