项目部署到宝塔跳转页面时出现404 not found解决方法 在对应的网站设置里配置Nginx伪静态即可 代码如下: location / { index index.html index.htm index.php; #autoindex on; if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } }