Out of the box, Firefox has a feature designed to help users who mis-typing URLs in the browser bar. If a URL fails to resolve, Firefox tries a couple of alterations of the URL to try find what the user 'might have' really intended, appending a
.comor prefixing a
www.to the host name portion of the URL to see if they resolve.
This feature, which was introduced in the early versions of Firefox, is somewhat annoying for developers. The feature means that when a server running on localhost fails to respond, Firefox decides to try
www.localhost.com. This often resolves to a not found page.
To disable this feature:
about:configin the browser bar
- Click "I'll be careful" and enter the special configuration page
browser.fixup.alternate.enabledin the search box that appears
- Right click on the
browser.fixup.alternate.enabledthat appears in the filtered list below and choose toggle to set the value to false.