wamp5.0为什么打开localhost之后默认不是index.php而是一个目录,需要点击里面的index.php文件才打开?

能不能地址栏输入localhost 直接打开的就是index.php的内容
2025-05-22 01:15:29
推荐回答(1个)
回答1:

到你的wamp安装目录,找到apache/conf/httpd.conf
查找
DirectoryIndex (后面可能有个index.html) 修改为
DirectoryIndex index.php index.html