nginx 重写 隐藏index.php
生活随笔
收集整理的這篇文章主要介紹了
nginx 重写 隐藏index.php
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
修改 nginx.conf 文件
location / {if (!-e $request_filename) {rewrite ^(.*)$ /index.php?s=$1 last;break;}}
location / {if (!-e $request_filename) {rewrite ^(.*)$ /index.php?s=$1 last;break;}}
?
轉載于:https://www.cnblogs.com/zhanghanwen16/p/8624276.html
總結
以上是生活随笔為你收集整理的nginx 重写 隐藏index.php的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 《编程珠玑》 读书笔记
- 下一篇: 超便携式截屏录屏软件FastStone