phpstudy如何隐藏index.php
找到打开 vhosts-ini
location / {
//新增代码
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
index index.html index.htm index.php;
#autoindex on;
}
修改完保存配置文件,重启 phpstudy即可!
转载请注明原文地址: https://mac.8miu.com/read-513411.html