location /
{ if (!-e $request_filename)
{
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
然后重启.
就可以不用写index.php也可以运行了
但是要注意一点,就是这只是隐藏,也就是说重启后写index.php也可以出现哦切记切记.
他只是隐藏了而已呀
关于如何在tp6中隐藏index.php这个入口文件的方法(phpstudy)需要注意的地方在哪?
阅读 93
2022-05-19
location /
{ if (!-e $request_filename)
{
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
然后重启.
就可以不用写index.php也可以运行了
但是要注意一点,就是这只是隐藏,也就是说重启后写index.php也可以出现哦切记切记.
他只是隐藏了而已呀
相关推荐
精彩评论(0)