您的位置: 首页 > IT文章 > nginx 重写 隐藏index.php nginx 重写 隐藏index.php 分类: IT文章 • 2024-09-22 14:52:25 修改 nginx.conf 文件location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } }