Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently upgraded to FF4 and want to change the behavior of the address bar. Right now if I start to type, for example, "websitename", it will suggest every url with 'websitename' in it. So far so good.

If I start by typing "local-websitename" {I use the local- prefix for sites I'm developing on my local server} it doesn't narrow the suggested list to that subdomain. It still suggests every 'websitename' it has in the history.

I keep ending up going to the live site when I mean to be on the local site, and vice-versa. I am pretty sure the behavior used to be that if you started typing a specific subdomain, it wouldn't suggest other subdomains (or at least, not at the top of the list) over the one that was specified.

Any ideas on how to change this behavior back? Thanks!

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

Take a look at browser.urlbar.matchBehavior property in about:config (as well as all browser.urlbar.* properties).

http://kb.mozillazine.org/Browser.urlbar.matchBehavior

Options 2 or 3 might be what you want.

share|improve this answer
    
It looks like option 3 is it! Thanks for the tip! –  Eileen May 27 '11 at 14:22
add comment

Consider having a local hosts file, e.g.:

192.168.0.[your-ip]      www.example.com example.com
xxx.xxx.xxx.[live-ip]    www.example.com example.com

Then get a host switcher for Firefox, e.g. https://addons.mozilla.org/en-us/firefox/addon/hostadmin/ to switch between the live and the development environment.

I admit this is not the answer you were expecting, however, in developing this way you are less likely to have surprises when you go live due to the development URL accidentally being hard-coded in a file/database field.

share|improve this answer
    
This isn't really an option for me -- I often have one window with all my local development tabs in it, and another full of live site tabs. I need to be able to get to both sets at all times. –  Eileen May 27 '11 at 14:20
    
...I get around that problem with a virtual machine running IE and bridged network adaptor. –  ʍǝɥʇɐɯ May 27 '11 at 14:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.