//
notetoself

Disable Firefox redirecting to localhost.com

Filed under ‘Annoying things I keep forgetting how to fix…’:

Out of the box, Firefox has a feature designed to help people mis-typing URLs in the browser bar. It’s described in detail here, but briefly, if a URL fails to resolve, Firefox trys a couple of permutations of the URL to try find what you -might have- really intended, appending a .com and/or prefixing a www. to the host name portion of the URL to see if they resolve.

This feature was introduced way back in the early versions of Firefox, and has been annoying developers ever since. The feature means that often-times when a server running on localhost fails to respond, Firefox decides to try localhost.com and/or www.localhost.com.

Now once you’ve fixed the problem with the server, you hit the reload button on Firefox, but it still doesn’t work, but this time it’s because Firefox has changed your URL to point at this bogus localhost.com. Annoying!!!

To disable this ‘feature’ do the following:

  • Type about:config in the browser bar
  • Type browser.fixup.alternate.enabled in the search box that appears
  • Right click on the browser.fixup.alternate.enabled that appears in the filtered list below and choose Toggle to set the value to false
  • Problem fixed, breath out.
About these ads

Discussion

Comments are closed.

Twitter

The views expressed on this blog are my own and do not necessarily reflect the views of my employer.

Archives

Follow

Get every new post delivered to your Inbox.

Join 93 other followers