Что такое www, какая разница между www и нормальной http страницей?

582
elbarna

В чем wwwи в чем отличие обычной веб-страницы или сайта? Если я открою www.google.com или google.com просто, что изменится?

-1
Просто сделайте небольшое исследование в сети. :) Xavierjazz 8 лет назад 2
Когда вы делаете Google, это подсказка: www. это поддомен любого домена, к которому он присоединен. www.domain.com Ben Plont 8 лет назад 0
Должен был пометить это как [дубликат этой темы] (http://superuser.com/questions/60006/what-is-the-purpose-of-the-www-subdomain?rq=1). JakeGould 8 лет назад 0
Возможный дубликат [Что значит wwws?] (Http://superuser.com/questions/353245/what-does-wwws-mean) Ben N 8 лет назад 1

1 ответ на вопрос

2
JakeGould

All www is is a naming convention inherited from hostname/domain name setups and procedures that existed when the Internet existed, but the “World Wide Web” (aka: www) was a new thing.

So—for example—at one point in the early 1990s a company named example.com could have had a simple Internet presence for the use of users using Telnet. So a user on example.com could Telnet into example.com by running a command like telnet example.com. But if they used a web browser like Mosaic or Lynx at the time, they would not get any content from example.com.

But now example.com set up a web server and needs a new home for it. Since the world wide web was not as common back then as it is now, simply going to http://example.com would have been confusing. So instead the hostname convention of www.example.com was devised. This naming convention followed the logic of FTP servers being on ftp.example.com and such.

So flash forward to nowadays, 99% of most people online connect to a hostname/domain name purely for some type of web server access. So now accepting HTTP connections on http://example.com would make sense in addition to http://www.example.com. In many cases, systems administrators setup redirects on the non www hostname so http://example.com automatically gets redirected to http://www.example.com.

So in short, in most cases http://example.com and http://www.example.com should give you the same content. The two naming formats exist to respect historical conventions/standards in hostname/domain name practices. And many times administrators just redirect requests to http://example.com to http://www.example.com to make their lives easier.

Вы можете даже увидеть это поведение в используемом примере, `http: // google.com`, просто введя его в браузере, вы получите перенаправление 403 на` http (s): // www.google.com` Matt Clark 8 лет назад 0