很可能是你的路由設(shè)置后沒有配置偽靜態(tài)!增加偽靜態(tài)后即可!
我用的是Apache所以
<IfModule mod_rewrite.c>
? ? <IfModule mod_negotiation.c>
? ? ? ? Options -MultiViews -Indexes
? ? </IfModule>
? ? RewriteEngine On
? ? # Handle Authorization Header
? ? RewriteCond %{HTTP:Authorization} .
? ? RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
? ? # Redirect Trailing Slashes If Not A Folder...
? ? RewriteCond %{REQUEST_FILENAME} !-d
? ? RewriteCond %{REQUEST_URI} (.+)/$
? ? RewriteRule ^ %1 [L,R=301]
? ? # Handle Front Controller...
? ? RewriteCond %{REQUEST_FILENAME} !-d
? ? RewriteCond %{REQUEST_FILENAME} !-f
? ? RewriteRule ^ index.php [L]
</IfModule>