如果你的服務(wù)器是apache,那么修改根目錄下的 .htaccess
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/?$1 [QSA,PT,L] #注意這里多了?號 刪除有驚喜