cancel
Showing results for 
Search instead for 
Did you mean: 

Firefox is assuming that a 'localhost' internal server address is an external search address and redirects to the external address

Highlighted
New Contributor

Firefox is assuming that a 'localhost' internal server address is an external search address and redirects to the external address

I am presently re-establishing a consultancy business that I ran a few years ago and consequently, am building a WordPress-based website. As I am in a very preliminary stage of development, I set up a local host on wamp server so I could play around with my website project.

On the day this wamp server set up was completed, I was able to activate the WordPress platform, and imported and installed the Weaver II theme. I then switched off my computer for the night. However, on switching on the next morning, I ran into a curious technical problem.

I use Firefox 12 as my browser and every time I entered 'localhost', or 'localhost/wp-admin.php', or any localhost-based word combination, I get automatically redirected to an AltaVista search result (the address that appears in my URL box replacing ‘localhost’ is:

http://us.yhs4.search.yahoo.com/yhs/search?fr=altavista&itag=ody&q=http://localhost/wp-admin/themes.....

Is there a reason for this? Do you think I did something wrong in my installation, although everything seemed to be working apparently normally the night before?

From my layman’s viewpoint, it seems to me that Firefox is confusing the ‘localhost’ request to open an internal file with an external search request for an item called ‘localhost’.

Any suggestions, advice to fix this?

Sincerely,

Graham Segal

13 REPLIES
Legendary Contributor

Re: Firefox is assuming that a 'localhost' internal server address is an external search address and redirects to the external address

see this article -> Search the web from the address bar

What i think is happening is that http://us.yhs4.search.yahoo.com is set as your default search engine and when you type something (keywords) and press Enter, it searches those keywords on the search engine and displays the search results.

Perform the suggestions mentioned in the above mentioned article. Check and tell if its working.

New Contributor

Re: Firefox is assuming that a 'localhost' internal server address is an external search address and redirects to the external address

mha007,

Thank you very much for taking the trouble to consider my problem. I followed the suggestions to modify the about:config files but none of the changes worked. I changed the keyword.enabled, the fixup and the browser.alternate.suffix (with that latter file, I tried changing the .com to .php and when that didn't work I tried deleting the .com entirely, leaving the box blank).

I have now reset the changes I made.

I have one query from your comments. I don't recall ever making Yahoo my default search engine. I don't know how to check this. I looked in the Options tab, but could not see any reference to Yahoo or the setting up of a default search engine. I have had experience in downloading some programs from cnet,com where the download process asks if I want to install a particular company's search toolbar or make a particular search engine my default. I always refuse these requests but I know that some of these vendors are a bit shifty and insert commands clandestinely or surreptitiously.

Could this be a sources of the problem?

regards,

chiron34

Legendary Contributor

Re: Firefox is assuming that a 'localhost' internal server address is an external search address and redirects to the external address

To restore your default search engine, see this article -> Troubleshoot Firefox issues using Safe Mode

  • place checkmark on "Restore Default Search Engines" and click "Make changes & Restart" button

Check and tell if its working.

New Contributor

Re: Firefox is assuming that a 'localhost' internal server address is an external search address and redirects to the external address

mha007.

I'm still not having much luck! I went into safe mode and deleted a number of search engines, including Yahoo, eBay, Amazon and a couple more that I had never heard of and didn't know were in my computer. Now, I only have Google & Bing as active search engines.

Unfortunately, this action did not fix the 'localhost' difficulty. I am still being diverted to the AltaVista search results site, despite the fact that Yahoo has been deleted as an included search engine.

have you any other ideas?

chiron34

Legendary Contributor

Re: Firefox is assuming that a 'localhost' internal server address is an external search address and redirects to the external address

Perform the suggestions mentioned in the following article:

Also see these articles:

Check and tell if its working.

Site Moderator

Re: Firefox is assuming that a 'localhost' internal server address is an external search address and redirects to the external address

hello, have you tried resetting (righ-click it > reset) the keyword.url prference in about:config to the default too& could you get the site to show up while you where in safemode?

maybe as a workaround you can access the local wp-blog via 127.0.0.1/wp-admin/themes.php ...

New Contributor

Re: Firefox is assuming that a 'localhost' internal server address is an external search address and redirects to the external address

mha007, madperson,

Your suggestions are greatly appreciated. unfortunately, i still have not been able to resolve the difficulty.

i have noticed in the 'about:config' file that there are a number of possibly relevant entries in the 'browser.search ...' section. I would like to send you a screenshot of this but I am not sure how to do that in this forum site. Essentially, there are references to Yahoo in this section, notwithstanding that I took action yesterday to delete Yahoo as an installed search engine.

There is also a reference to a 'MyStart' search engine that I have not come across before.


Some examples:

1. browser.search.selectedEngine>user set>string>Yahoo

2. browser.search.order.2>default>string>Yahoo

3. browser.search.defaultenginename>user set>string>MyStart Search


Do these entries in 'about:config' provide any clues?

signing off in hope with a couple of extra grey hairs,

chiron34

Legendary Contributor

Re: Firefox is assuming that a 'localhost' internal server address is an external search address and redirects to the external address

-> Start Firefox in -> Troubleshoot Firefox issues using Safe Mode to check if your add-ons/extensions are causing the problems.

Check and tell if its working normally while using Firefox in Troubleshoot Firefox issues using Safe Mode.

Site Moderator

Re: Firefox is assuming that a 'localhost' internal server address is an external search address and redirects to the external address

you can also install the searchreset extension that will revert the settings back to the default: https://addons.mozilla.org/de/firefox.../searchreset/