今日在使用tp5的时候,想要隐藏index.php 那么应该怎么做?
服务器是nginx ,好的看配置:
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
autoindex on;上面这句代码必须放在 location /{ } 这个方法体中

发布时间:2018-02-23
今日在使用tp5的时候,想要隐藏index.php 那么应该怎么做?
服务器是nginx ,好的看配置:
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
autoindex on;上面这句代码必须放在 location /{ } 这个方法体中
