这是由于运行模式导致的
修改入口处的配置

1
2
3
4
5
6
7
8
9
10
11
12
13
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

#apacheHanlder模式
#RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
#fastCGI模式
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>