2
3 4 5 6 |
在nginx.conf中Location/{}中加上下面这个if判断就可以了
location /
{ if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } } |
解决nginx配置伪静态 去除框架的Index.php
最新推荐文章于 2023-03-19 17:26:14 发布