nginx 重写 隐藏index.php

修改 nginx.conf 文件
location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } }

 

posted @ 2018-03-22 15:42  zhw15  阅读(198)  评论(0编辑  收藏  举报