一直在宝塔上都是用的apache。然后这次试了下ngnix。
打开这里,在里面加上一段。
location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } }
参考资料:https://www.yuanzifan.com/7298.html