Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

How can I get Firefox to stop using www. from a cached prefix?

  • 5 trả lời
  • 2 gặp vấn đề này
  • 16 lượt xem
  • Trả lời mới nhất được viết bởi LaurieMcC

more options

In the past month or so, I've noticed that Firefox has begun prefixing "www." to the address of my web site when I type in its address without the "www.," which is not needed: when I type "smbhax.com" in the address bar--and without selecting any of the auto-complete suggestions that appear below it--I'm taken to "http://www.smbhax.com"; but I don't want that useless "www" to be there.

This seems to be some sort of URL caching feature, and I guess a new-ish one. I was able to reproduce the problem with another site of mine that shouldn't need the "www":

  1. Type "paleface.net" in the address bar. I'm taken to "http://paleface.net," as expected.
  2. Type "www.paleface.net" in the address bar. I'm taken to "http://www.paleface.net," as expected.
  3. Type "paleface.net" in the address bar.

--> Now I'm taken to "http://www.paleface.net" instead of "http://paleface.net," which is the address I typed and the address to which I wanted to go.

I've tried turning off both keyword.enabled and browser.fixup.alternate.enabled in about:config as described here -- https://support.mozilla.org/en-US/kb/search-web-address-bar -- and the problem still occurs.

I've used Firefox for years with these sites, and I didn't see this automatic adding of "www." until the past month or so.

I have *not* tried clearing my browser history etc to see if that temporarily fixes the problem.

Update: I've tried the "Forget about this site" procedure suggested below, and it does clear the problem on a single-site basis...until you've gone to that domain with a "www." prefix again at some point.

In the past month or so, I've noticed that Firefox has begun prefixing "www." to the address of my web site when I type in its address without the "www.," which is not needed: when I type "smbhax.com" in the address bar--and without selecting any of the auto-complete suggestions that appear below it--I'm taken to "http://www.smbhax.com"; but I don't want that useless "www" to be there. This seems to be some sort of URL caching feature, and I guess a new-ish one. I was able to reproduce the problem with another site of mine that shouldn't need the "www": # Type "paleface.net" in the address bar. I'm taken to "http://paleface.net," as expected. # Type "www.paleface.net" in the address bar. I'm taken to "http://www.paleface.net," as expected. # Type "paleface.net" in the address bar. --> Now I'm taken to "http://www.paleface.net" instead of "http://paleface.net," which is the address I typed and the address to which I wanted to go. I've tried turning off both keyword.enabled and browser.fixup.alternate.enabled in about:config as described here -- https://support.mozilla.org/en-US/kb/search-web-address-bar -- and the problem still occurs. I've used Firefox for years with these sites, and I didn't see this automatic adding of "www." until the past month or so. I have *not* tried clearing my browser history etc to see if that temporarily fixes the problem. Update: I've tried the "Forget about this site" procedure suggested below, and it does clear the problem on a single-site basis...until you've gone to that domain with a "www." prefix again at some point.

Được chỉnh sửa bởi smbhax vào

Tất cả các câu trả lời (5)

more options

You can remove all stored data from a specific domain via "Forget About This Site" in the right-click context menu of an history entry (Show All History or History sidebar).

Using "Forget About This Site" will remove everything like bookmarks, cookies, passwords, cache, history, and exceptions from that domain, so be cautious and if you have a password or other data from that domain that you do not want to lose then make a note of those passwords and bookmarks. You can't recover from that "forget" unless you have a backup of the affected files.

It doesn't have any lasting effect, so if you revisit such a 'forgotten' website then data from that website will be saved once again.

more options

I tried that, and it does clear the issue on a single-site basis--until you've hit that domain with a "www." prefix again at some point. It isn't a true solution to the problem, but it's good to know! Thanks for pointing it out.

Được chỉnh sửa bởi smbhax vào

more options

Did you try to set the Boolean pref browser.urlbar.autoFill to false on the about:config page?

See "Prevent Firefox from automatically completing URLs":

more options

Ah, setting browser.urlbar.autoFill to False in about:config prevents the "www." prefix behavior. Of course, I don't really want to turn autofill off because I rely on it a lot.

I guess maybe there was a recent change to how autofill works, because I've always had it on and it didn't use to do this.

Also, it works somewhat unusually in this case because the "www." does not appear as you are typing the address; it only appears--along with "http://"--after you hit ENTER. So as far as you can tell, you're set to go to [domain].com correctly, but then you hit ENTER and find out Firefox had other ideas about where to send you. It isn't so much a fill as a switcheroo.

Được chỉnh sửa bởi smbhax vào

more options

I am having the same issue. If I copy in a URL that starts with "http://" and then hit enter, Firefox swaps the "http://" for "www" so I get an error message that the page or server or whatever can't be found. I've tried everything that's been suggested here and nothing works for me. I'm using version 10.0.12. This wasn't an issue with earlier versions. It's back to IE I go until I can find a resolution for this issue. Extremely frustrating.