2
3 4 5 6 |
在nginx.conf中Location/{}中加上下面这个if判断就可以了
location /
{ if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } } |
2
3 4 5 6 |
在nginx.conf中Location/{}中加上下面这个if判断就可以了
location /
{ if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } } |