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>

猜你喜欢

转载自www.cnblogs.com/zgbcode/p/9999215.html