搜尋 Mozilla 技術支援網站

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

Learn More

when is http:// and www. not needed in the url typed in the address bar?

more options

I don't understand when it is necessary to add "http://" and when is it necessary to add "www." to the web address typed in the address bar? What does Firefox automatically fill in? Is there a way to configure what Firefox will autofill in the url?

I don't understand when it is necessary to add "http://" and when is it necessary to add "www." to the web address typed in the address bar? What does Firefox automatically fill in? Is there a way to configure what Firefox will autofill in the url?

被選擇的解決方法

When you request an incomplete URL from a server, it usually sends back a redirect to the correct address. Same if you request an insecure (HTTP) page on a server that wants you to use a secure (HTTPS) connection. Over time, these little delays add up, so if you are setting up a bookmark, your home page, etc., go ahead and use the full URL so you can avoid the extra step.

從原來的回覆中察看解決方案 👍 0

所有回覆 (2)

more options

The www.prefix is part of the domain of a website and if the domain without this prefix doesn't exist (a DNS look up fails) then Firefox will automatically try another look up with the www. prefix.
The http:// prefix is the default protocol and uses port 80 to connect to the server.

See Domain Guessing:

more options

選擇的解決方法

When you request an incomplete URL from a server, it usually sends back a redirect to the correct address. Same if you request an insecure (HTTP) page on a server that wants you to use a secure (HTTPS) connection. Over time, these little delays add up, so if you are setting up a bookmark, your home page, etc., go ahead and use the full URL so you can avoid the extra step.