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点击项目文件夹跳转失败

相关文章:

  • 2022-12-23
  • 2021-05-14
  • 2021-11-30
  • 2021-07-08
  • 2021-08-14
  • 2022-02-08
  • 2021-12-21
  • 2021-05-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2021-07-30
  • 2021-06-20
  • 2021-08-23
相关资源
相似解决方案