wampserver 一切正常,打开localhost点击项目文件夹跳转失败

wampserver 一切正常,打开localhost点击项目文件夹跳转失败在www文件夹下创建myPhpTest文件夹,新建一个test.php文件,打开localhost一切正常,点击myPhpTest文件夹想查看里面的php文件时跳转失败如下:

wampserver 一切正常,打开localhost点击项目文件夹跳转失败

wampserver 一切正常,打开localhost点击项目文件夹跳转失败

解决办法:找到www文件夹下的index.php,打开并修改红色部分:$projectContents .= 'http://'.$file.$UrlPort.'/"';为$projectContents .= 'http://localhost/'.$file.$UrlPort.'/"';就行了。

wampserver 一切正常,打开localhost点击项目文件夹跳转失败

wampserver 一切正常,打开localhost点击项目文件夹跳转失败

wampserver 一切正常,打开localhost点击项目文件夹跳转失败