首先看一下 .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]
</IfModule>
在看一下app.php
把url_route_must 路由開啓