My http://localhost/ redirecting to www.localhost.com

后端 未结 9 1124
离开以前
离开以前 2021-01-08 00:13

I checked my httpd.conf file and nothing found anything, let me know other areas whr i need to look.

Although my other links are working fine like --

9条回答
  •  自闭症患者
    2021-01-08 01:07

    I had the same problem, all of my browsers were redirecting http://localhost/mysite or localhost/mysite to www.localhost.com/mysite on manually installed php,apache and mysql system. replacing 127.0.0.1 with localhost was working perfectly means my installation of W.A.M.P perfectly running. i tried to solve it according to Salman way but no luck. i did not look into C:\Windows\System32\drivers\etc\hosts file, i knew even host files do not have 127.0.0.1 localhost entry, doesn't matter at all because it is built in the system by default.

    problem was solved by deactivating my avast antivirus shields, which were causing such unusual browser behavior. if you face such a problem you can try deactivating your antivirus shields first before you jump into any deep technical solution.

提交回复
热议问题