打开www目录下index.php,大概在第480行:
将如下代码:
if($suppress_localhost)
$projectContents .= 'http://'.$file.$UrlPort.'/"';
else
$projectContents .= 'http://localhost'.$UrlPort.'/'.$file.'/"';
$projectContents .= '>'.$file.'';
修改为:
if($suppress_localhost)
$projectContents .= 'http://localhost/'.$file.$UrlPort.'/"';
else
$projectContents .= 'http://localhost'.$UrlPort.'/'.$file.'/"';
$projectContents .= '>'.$file.'';
备注:wampserver 2.5,在index.php的第338行