找到apache的配置文件httpd.conf后找到
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
在其中添加index.php,且需要将index.php写在index.html前面,形成如下效果
找到apache的配置文件httpd.conf后找到
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
在其中添加index.php,且需要将index.php写在index.html前面,形成如下效果