location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } }
然后重启.
就可以不用写index.php也可以运行了
但是要注意一点,就是这只是隐藏,也就是说重启后写index.php也可以出现哦切记切记.
他只是隐藏了而已呀
location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } }
然后重启.
就可以不用写index.php也可以运行了
但是要注意一点,就是这只是隐藏,也就是说重启后写index.php也可以出现哦切记切记.
他只是隐藏了而已呀
微信扫码登录