如果你的服务器是Apache,那么修改根目录下的 .htaccess


  Options +FollowSymlinks -Multiviews

  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d

  RewriteCond %{REQUEST_FILENAME} !-f

  RewriteRule ^(.*)$ index.php/?$1 [QSA,PT,L]  #注意这里多了?号 删除有惊喜