在public/.htaccess 中输入这段代码即可实现过滤index.php
1 <IfModule mod_rewrite.c>2 ??Options +FollowSymlinks -Multiviews3 ??RewriteEngine On4 5 ??RewriteCond %{REQUEST_FILENAME} !-d6 ??RewriteCond %{REQUEST_FILENAME} !-f7 ??#RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]8 ??RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]9 </IfModule>
关于tp5自动过滤index.php
原文地址:https://www.cnblogs.com/CcPz/p/9383119.html