WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: WampNoobNeedsHelp (---.inet.sofast.net)
Date: May 23, 2008 08:46PM

Hello. I have been using wamp and I need to get back to my web development project.

I installed WAMP 2.0, and typed in my details, which email address to use, what host (localhost) and then pressed finish. After everything was started I clicked on the WAMP widget and then clicked localhost.

Every time I do that, it redirects to www.localhost.com instead of [localhost]

I'm stumped! I've tried everything I can think of. Would someone help me resolve this?


This is URGENT
Thank you.

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: May 23, 2008 08:56PM

yes this is your hosts files doing this... or you have a type of msn search page... that wen it cant find it it trys that



so first try

"http ://localhost" in your browser


if not... open the hosts file in C:\WINDOWS\system32\drivers\etc

and make sure the only line with the word localhost in it is

127.0.0.1 localhost



delete any other lines with it in it

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: WampNoobNeedsHelp (---.inet.sofast.net)
Date: May 23, 2008 09:21PM

I did all that and it still redirects.

P.S. I'm using FireFox

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: May 23, 2008 09:26PM

wat colour is your wamp icon ?

white?

red and white?

yellow and white?

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: WampNoobNeedsHelp (---.inet.sofast.net)
Date: May 23, 2008 09:32PM

White

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: May 23, 2008 09:43PM


Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: WampNoobNeedsHelp (---.inet.sofast.net)
Date: May 23, 2008 09:58PM

Yup, that worked. ... What about localhost? smiling smiley

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: May 23, 2008 10:03PM

i think look again at your host file..

something is a miss


post it up here

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 05/23/2008 10:03PM by stevenmartin99.

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: WampNoobNeedsHelp (---.inet.sofast.net)
Date: May 23, 2008 10:18PM

This is what my host file says:

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: May 23, 2008 10:30PM

try


127.0.0.1 wamp


in your hosts file.

then type in http:/ /wamp


i think u have a virus that is doing that to be honest

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: WampNoobNeedsHelp (---.inet.sofast.net)
Date: May 23, 2008 11:44PM

Okay, i'll scan my computer and keep you posted.

Thank you Steven.

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: WampNoobNeedsHelp (---.inet.sofast.net)
Date: May 24, 2008 01:29AM

Well, I did a virus scan, removed the tracking cookies and tried again and it still doesn't work.

Any other Ideas?

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: WampNoobNeedsHelp (---.inet.sofast.net)
Date: May 24, 2008 02:29AM

Okay. I got it fixed. I read to uninstall IP V6 protocol, and it fixed the problem.

Thank you alot for your help Steven. smiling smiley

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: MrFixit (---.catv.pool.telekom.hu)
Date: March 10, 2013 02:28AM

I got a eureka solution like Archimedes.
The main culprit is any of anti-virus programs.
I installed NOD32 by ESET and it's so efficient that my computer was incapable of opening localhost.
That's why the browser redirected.
After uninstalling the %#&kin anti-virus, I'm at once able to view localhost correctly.
I'm not saying you follow me by uninstalling your anti-virus programs but check them out and make your own decision.

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: RiggsFolly (---.as13285.net)
Date: March 11, 2013 11:10AM

Dear MrFixit ne MrBodgeit,

Not a very satisfactory solution.

All you need to do is tell your AntiVirus/Firewall that TCP is allowed to flow on port 80.
Look up how to do that in the docs of your chosen AV/FW

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: roulhs (---.on2.ontelecoms.gr)
Date: March 12, 2013 10:36AM

I think I have the same problem.. I read what you have done, but it didn't work.. Some other ideas..? It is urgent..!!



Edited 1 time(s). Last edit at 03/12/2013 10:37AM by roulhs.

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: RiggsFolly (---.as13285.net)
Date: March 12, 2013 02:09PM

Then its not the same problem. Please start a new thread and describe you problem fully.

Options: ReplyQuote
Re: WAMP 2.0 http://localhost redirects to http://www.localhost.com
Posted by: diparajuli (---.static.tpgi.com.au)
Date: August 18, 2013 01:13AM

I fixed in 1 step --using this:
I was using default browser : firefox
go to help>>troubleshoot information>>reset Firefox
all good.

Options: ReplyQuote


Sorry, only registered users may post in this forum.