把下面的代码放到.htaccess文件里面
<IfModule mod_rewrite.c>
RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>
把下面的代码放到.htaccess文件里面
<IfModule mod_rewrite.c>
RewriteEngine on