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 -- >
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.