phpstudy如何隐藏index.php
找到打开 vhosts-ini
location / {
**if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}**
index index.html index.htm index.php;
#autoindex on;
}
在配置文件中加入粗体!
PS:下面看下phpstudy 中使index.php文件优先于index.html
相信有很多人碰到在根目录同时存在index.html和index.php文