TP5 隐藏入口文件 index.php

找到public下的.htaccess

1 <IfModule mod_rewrite.c>
2   Options +FollowSymlinks -Multiviews
3   RewriteEngine On
4 
5   RewriteCond %{REQUEST_FILENAME} !-d
6   RewriteCond %{REQUEST_FILENAME} !-f
7   RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
8 </IfModule>

 

posted @ 2018-11-22 09:47  北海北……  阅读(168)  评论(0编辑  收藏  举报