打开httpd.conf 文件 找到 <IfModule dir_module> DirectoryIndex index.php </IfModule> 修改一下 index.php就好了 转载于:https://www.cnblogs.com/zhangran/archive/2012/03/18/2404691.html