nginx 重写 隐藏index.php Posted 2020-10-28 张瀚文的博客 tags: 篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx 重写 隐藏index.php相关的知识,希望对你有一定的参考价值。 修改 nginx.conf 文件location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } } 以上是关于nginx 重写 隐藏index.php的主要内容,如果未能解决你的问题,请参考以下文章