转别人的,有用,Mark一下
public 下的.htaccess 修改为
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] //此行去掉换成下面这一句
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] //写上这一句
</IfModule>