thinkphp6 隐藏index.php 代码
<IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] </IfModule>
修改的是 public 下的 .htaccess 文件! 对 Apache 服务器生效
上一篇:管理系统后台登录拦截逻辑