Fork me on Baidu

tp5隐藏入口文件

使用 apache 放到public目录的.htaccess
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>

 

posted @ 2020-10-31 10:00  consideration  阅读(83)  评论(0编辑  收藏  举报