Apache httpd.conf配置文件中加载了mod_rewrite.so模块AllowOverride None将None改为All把下面的内容保存为.htaccess文件放到应用入口文件的同级目录下<IfModulemod_rewrite.c>Options+FollowSymlinks-MultiviewsRewriteEngineOnRewriteCond