试了很多方法,发现基本都是由于.htaccess的问题,只要隐藏掉index.php即可,所以修改.htaccess为以下代码
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond $1 !^(DATA|images|otherThings)
RewriteRule ^(.*)$ index.php?s=/index/$1 [QSA,PT,L]
</IfModule>