把"wholesale.php?s=taley"用nginx的rewrite重写成"wholesale/taley.html"
时间: 2023-08-07 19:12:48 浏览: 58
你可以使用以下Nginx的rewrite规则将"wholesale.php?s=taley"重写为"wholesale/taley.html":
```nginx
location / {
rewrite ^/wholesale/(.*).html$ /wholesale.php?s=$1 last;
}
```
这样,当用户访问"wholesale/taley.html"时,Nginx会将请求重写为"wholesale.php?s=taley"进行处理。