转载:http://www.02405.com/soft/linux/1841.html
方法一:在网站伪静态下添加(亲测有用)
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
![在这里插入图片描述](https://img-blog.csdnimg.cn/20191108115607488.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQyNDYyNjU2,size_16,color_FFFFFF,t_70)
方法二:在伪静态下添加
try_files $uri $uri/ /index.php?$query_string;