在项目根目录创建.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
最新推荐文章于 2024-06-18 20:07:45 发布
关键词由CSDN通过智能技术生成