在根目录的.htacess里面修改为如下内容
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
DirectoryIndex index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
评论 (0)