為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Firefox searches google instead of loading url with non-internet domain

more options

I have some local services under a local domain name: example.lena

Every time I try to access any of those services that are not in my history, Firefox chooses to search google instead of load up the url, with an option appearing under the toolbar saying: "Did you mean to go to http://example.lena/?

How can I force Firefox to first try the url instead of the google search?

I have some local services under a local domain name: example.lena Every time I try to access any of those services that are not in my history, Firefox chooses to search google instead of load up the url, with an option appearing under the toolbar saying: "Did you mean to go to http://example.lena/? How can I force Firefox to first try the url instead of the google search?

所有回覆 (3)

more options

You can try to create a browser.fixup.domainwhitelist pref for this domain like exists by default for localhost.

  • browser.fixup.domainwhitelist.example.lena = true

You can open the about:config page via the location/address bar. If you get the warning page, you can click the "Accept the Risk and Continue" button.

由 cor-el 於 修改

more options

cor-el said

You can try to create a browser.fixup.domainwhitelist pref for this domain like exists by default for localhost.
  • browser.fixup.domainwhitelist.example.lena = true
You can open the about:config page via the location/address bar. If you get the warning page, you can click the "Accept the Risk and Continue" button.

That seems great, but I would have to do this for every service on every client.

Is there a way to add the whole *.lena domain instead of the specific hostname to the whitelist?

Maybe by using browser.fixup.domainsuffixwhitelist.lena instead of browser.fixup.domainwhitelist.example.lena?

由 cor-el 於 修改

more options

sotirone said

Maybe by using browser.fixup.domainsuffixwhitelist.lena instead of browser.fixup.domainwhitelist.example.lena?

That sounds logical. Does it work?