location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
在你的Nginx配置文件中,加入代码如上,重启Nginx服务即可。。
}
在你的Nginx配置文件中,加入代码如上,重启Nginx服务即可。。