隐藏 index.php 保证apache配置文件httpd.conf里的LoadModulerewrite_module modules/mod_rewrite.so开启(去掉#)将相对应目录的AllowOverride 改为ALL在根目录下,即在index.php同级目录下新建.htaccess RewriteEngine on # if a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME}…