但是在url中输入地址又可以访问
这个怎么解决啊???

解决方案 »

  1.   

    在PHPmyadmin页面中无法打开本地主机项目是因为链接默认为http://project_name/,而正确链接是http://localhost/project_name/ 。如果需要打开,需要修改配置文件。1、进入wamp安装路径文件,找到wamp/www/index.php,用文本编辑器打开index.php文件。找到$suppress_localhost = true;这一句(楼主2.5版本这一句在第30行),把它改为$suppress_localhost = false;查找<a href="'.($suppress_localhost ? 'http://' : '').$file.'">'.$file.'</a>字段(在第338行),在http://后面加上localhost/,即为<a href="'.($suppress_localhost ? 'http://localhost/' : '').$file.'">'.$file.'</a>;2、找到wamp/scripts/refresh.php,用文本编辑器打开refresh.php文件。找到Parameters: "http://'.$projectContents[$i].'/"; Glyph: 5字段(在651行),改为Parameters: "http://localhost/'.$projectContents[$i].'/"; Glyph: 5;3、进入wamp安装路径文件,找到wamp\bin\apache\apache2.4.9\conf\extra\httpd-autoindex.conf,用文本编辑器打开httpd-autoindex.conf文件。找到以下代码(大约在21行)Alias /icons/ "c:/Apache24/icons/" <Directory "c:/Apache24/icons"> 改为以下代码Alias /icons/ "c:/wamp/bin/apache/apache2.4.9/icons/" <Directory "c:/wamp/bin/apache/apache2.4.9/icons">;其中图标路径应该写你的wamp下对应Apache的路径。