現在在現代瀏覽器中,是否真的有必要將“www”新增到網站url中?

當我們使用我們最喜歡的瀏覽器訪問一個網站時,我們通常只需輸入URL的基本部分,就可以毫無問題地“到達”所需的位置。但是,我們現在是否已經到了可以開始從所有網站的URL中省略“www”的地步,或者仍然有必要新增它?...

現在在現代瀏覽器中,是否真的有必要將“www”新增到網站url中?

當我們使用我們最喜歡的瀏覽器訪問一個網站時,我們通常只需輸入URL的基本部分,就可以毫無問題地“到達”所需的位置。但是,我們現在是否已經到了可以開始從所有網站的URL中省略“www”的地步,或者仍然有必要新增它?

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

問題

超級使用者讀者Celeritas想知道在網站URL中新增“www”是否有區別:

In modern web browsers, is there any point in putting ‘www’ in front of a website URL that uses it? When going to ‘www.facebook.com’ or ‘www.cbc.ca’, is there any benefit or difference made by omitting the ‘www’?

現在是否真的有必要將“www”新增到網站url中,或者您可以在瀏覽網際網路時忽略它而不遇到任何問題?

答案

超級使用者貢獻者Synetech為我們提供了答案:

It usually doesn’t, but it could.

This has nothing to do with the browser; it has to do with the web-server. The web-server is a computer (or even multiple computers) which receive queries for web-pages and send the appropriate data. A URL includes several parts, one of which is the name or address of the web-server.

Many companies host more than just a web-server, they may also run an FTP-server, a database-server, a mail-server, and so on. These could be hosted from the same machine as the web-server or on different machines.

In the past, it was common to specify the difference via a prefix for c***istency. So for example, Acme Industries might buy the domain-name ‘acme.org’, then set up one or more computers to host the different services they have. When you want to use one of the services, you enter the appropriate host name:

007Ys3FFgy1gpfprovdvtj30cu03iwem

So why does it still work without ‘www’? Because most web-servers allow you to accept different URLs and redirect them as necessary. For the convenience of users, most companies and organizati*** set up a rule to have the web-server handle connecti*** to the hostname on port 80 (the “web port”), or redirect it to another system if the web-server is a different machine.

Differentiating the service or machine being accessed can also be done through the port, but it requires specifically including it in the name, so it’s not really any better than using prefixes:

007Ys3FFgy1gpfprphe8rj30cu01nt8k

Sometimes the scheme can perform this function:

007Ys3FFgy1gpfprq39h1j30cu01nglh

Using schemes works as well and can be done automatically using the appropriate software (e.g., a browser would add ‘http://’, an email client would add ‘pop://’, etc.). But there are not official schemes for every type of server that can exist, and inventing one is not ideal because it would require software to support it.

It’s becoming less and less necessary to include ‘www’, but it is not universal, and some sites still require it because it helps keep things organized.

大多數情況下,我們可以愉快地(很容易地)省去在我們最喜歡的網站的網址的“www”部分鍵入,但總有一種可能性,你可能會遇到“罕見”的網站,仍然需要它。


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

  • 發表於 2021-04-11 12:55
  • 閱讀 ( 42 )
  • 分類:網際網路

你可能感興趣的文章

如何在沒有瀏覽器的情況下使用web

... 網路瀏覽器非常流行,甚至出現在智慧電視上。但你知道上網不需要瀏覽器嗎?雖然瀏覽器對於瀏覽網頁至關重要,但它並不是完全必要的。這真的取決於你打算在網上做什麼。 ...

  • 發佈於 2021-03-11 17:22
  • 閲讀 ( 60 )

使用5個自定義工具使任何新的瀏覽器選項卡更有用

...Edge和Safari之外,它可以在任何瀏覽器上執行。記住,你現在可以在任何基於Chrome的瀏覽器上安裝Chrome擴充套件。 ...

  • 發佈於 2021-03-14 23:00
  • 閲讀 ( 67 )

avira瀏覽器安全是必要的擴充套件嗎?

...e中給它們貼上標籤是多餘的。像Chrome、Firefox和Edge這樣的現代瀏覽器知道哪些站點包含惡意軟體,並且在訪問它們時已經發出警告。谷歌對危險網站很聰明,不會在搜尋結果的頂端推薦這些網站。 ...

  • 發佈於 2021-03-15 17:24
  • 閲讀 ( 52 )

11個檢查、清理和最佳化css檔案的有用工具

... postss再次出現在這個列表上,值得一看。它有來自開發社群的強大支援,使postss與現代web開發的需求保持一致。 ...

  • 發佈於 2021-03-18 06:31
  • 閲讀 ( 46 )

你真的能打破網際網路嗎?

... 不過,就像在現實世界中一樣,通往那個地址的道路並不簡單。請求必須透過許多不同的網路才能到達目的地。如果不是路由表的話,它將是不可行的,而且速度非常慢。路由表是計...

  • 發佈於 2021-03-18 15:24
  • 閲讀 ( 67 )

什麼是刮網?如何從網站收集資料

... 選項的選項卡列表列在視窗的頂部。現在感興趣的是網路標籤。這將提供有關HTTP流量的詳細資訊,如下所示。 ...

  • 發佈於 2021-03-22 00:36
  • 閲讀 ( 46 )

如何下載整個網站進行離線閱讀

雖然現在到處都有Wi-Fi,但你可能會發現自己不時地沒有Wi-Fi。當你這樣做的時候,你可能希望你可以在離線時儲存和訪問某些網站——也許是為了研究、娛樂或後代。 ...

  • 發佈於 2021-03-22 21:53
  • 閲讀 ( 50 )

7款獨特的android瀏覽器

...,定製標籤由於缺乏谷歌的關注而變得一團糟。定製標籤現在有兩個嚴重的缺點——它們阻止你同時處理多個任務,當你返回應用程式時,你會丟失所有的標籤。 ...

  • 發佈於 2021-03-23 19:52
  • 閲讀 ( 58 )

如何像專業人士一樣使用alfred for mac搜尋web

...示在Alfred的結果頁中。設定要用於自定義搜尋的關鍵字。現在輸入任何文字並單擊Test按鈕,檢查您是否有正確的自定義搜尋URL。 ...

  • 發佈於 2021-03-24 10:38
  • 閲讀 ( 45 )

為什麼java現在在windows、mac和linux上的安全風險更小

...了。很少有網站使用Java,人們安裝Java的主要程式Minecraft現在包括一個安全的Java捆綁版本。其他外掛也不是必需的。微軟幾年前就否決了Silverlight,你很難找到一個包含Shockwave內容的網站。 ...

  • 發佈於 2021-03-26 10:20
  • 閲讀 ( 54 )
u的還是深呼吸
u的還是深呼吸

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦