在项目根目录创建.htaccess文件,写入以下类容 <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
tp6去掉url中index.php
猜你喜欢
转载自blog.csdn.net/cmj8043719242/article/details/108867433
今日推荐
周排行