![修改PHP网站默认首页 修改PHP网站默认首页](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
一般默认的首页文件是index.php index.php3 index.html index.htm之类的,要想修改为myNewIndex.php,
进入服务器Apache目录,找到httpd.conf文件,记事本打卡,搜索"DirectoryIndex",可以看到
<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>
添加myNewIndex.php即可,顺序代表了优先级