以前也装过ie8,并且地址栏里输入localhost(或者localhost:80/801等端口)时,自动转到index.php(设置的默认的)
而现在重装了系统,使用ie8输入localhost时,自动转到百度搜索去了.使用firefox没有这个问题.WINDOWS\system32\drivers\etc里的内容如下:127.0.0.1       localhost
ie8里输入127.0.0.1和本机的ip,都能正常转到index.php.(xp pro的系统,apache 2.2, php5)请问这是什么原因?

解决方案 »

  1.   

    这不是FF的问题,是你操作系统设置的问题。首先你可以ping localhost 检查一下你的网络设置中域名解析是否正确。
      

  2.   

    ping localhost没有问题然后呢?
      

  3.   

    上次我装了个防毒软件,倒是ie好好的,firefox确死活打不开任何链接,http://localhost也打不开 ,检查了半天结果只能卸载掉防毒软件。
      

  4.   

    估计服务器没有设置默认页,因为找不到,所以系统自动调到友好地址上去了,也就是搜索引擎。
    打开的百度,搜索的关键词是localhost吧?
      

  5.   

    to LuciferStar:
    关键词是localhosthttpd.conf配置文件设置的是ServerName localhost:80,DocumentRoot "D:/wwwroot/",DirectoryIndex index.php index.html,<Directory "D:/wwwroot/">还需要设置什么?
      

  6.   

    ie8的 bug  你就用127.0.0.1吧
      

  7.   

    <IfModule dir_module>
        DirectoryIndex index.html index.php
    </IfModule>配置应该没问题,估计真的是IE8的问题。