最近下载新版本wampserver发现点击项目不会自动添加localhost了,导致访问项目很麻烦。
修改如下
修改wamp根目录下的wampmanager.conf
urlAddLocalhost = “on”
或者直接
在www目录下找到index.php然后修改里面查找$projectContents 或直接查看338行代码 修改’http://’为’http://localhost/‘即可
例如:
projectContents.=′<li><ahref="′.(
suppress_localhost ? ‘http://localhost/’ : ”).
file.′">′.
file.’’;
本文介绍了解决WAMPServer新版本中无法自动添加localhost的问题。通过修改wampmanager.conf文件中的urlAddLocalhost参数或调整index.php中的链接格式,可以实现对项目的本地访问。
469

被折叠的 条评论
为什么被折叠?



