Có thực sự cần thiết để thêm ‘www’ vào URL của trang web trong trình duyệt hiện đại ngay bây giờ không?

Mục lục:

Có thực sự cần thiết để thêm ‘www’ vào URL của trang web trong trình duyệt hiện đại ngay bây giờ không?
Có thực sự cần thiết để thêm ‘www’ vào URL của trang web trong trình duyệt hiện đại ngay bây giờ không?

Video: Có thực sự cần thiết để thêm ‘www’ vào URL của trang web trong trình duyệt hiện đại ngay bây giờ không?

Video: Có thực sự cần thiết để thêm ‘www’ vào URL của trang web trong trình duyệt hiện đại ngay bây giờ không?
Video: CES 2014: Yahoo launches News Digest app for iPhone - YouTube 2024, Tháng tư
Anonim
Khi chúng tôi truy cập trang web bằng trình duyệt yêu thích của mình, chúng tôi thường chỉ nhập phần cơ bản của URL và ‘đến’ ở vị trí mong muốn mà không gặp bất kỳ sự cố nào. Nhưng chúng tôi đã đạt đến một điểm mà chúng tôi có thể bắt đầu bỏ qua ‘www’ từ URL cho tất cả các trang web ngay bây giờ hay vẫn cần phải thêm nó vào?
Khi chúng tôi truy cập trang web bằng trình duyệt yêu thích của mình, chúng tôi thường chỉ nhập phần cơ bản của URL và ‘đến’ ở vị trí mong muốn mà không gặp bất kỳ sự cố nào. Nhưng chúng tôi đã đạt đến một điểm mà chúng tôi có thể bắt đầu bỏ qua ‘www’ từ URL cho tất cả các trang web ngay bây giờ hay vẫn cần phải thêm nó vào?

Phiên Hỏi & Đáp hôm nay đến với chúng tôi theo lịch sự của SuperUser - một phân khu của Stack Exchange, một nhóm các trang web Hỏi & Đáp do cộng đồng điều hành.

Câu hỏi

Người đọc siêu người dùng Celeritas muốn biết liệu việc thêm ‘www’ vào URL của trang web có tạo nên sự khác biệt hay không:

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’?

Có thực sự cần thiết phải thêm ‘www’ vào URL của trang web ngay bây giờ hay bạn có thể bỏ qua nó khi duyệt internet và không gặp phải bất kỳ sự cố nào?

Câu trả lời

Người đóng góp của SuperUser Synetech có câu trả lời cho chúng tôi:

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 consistency. 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:

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 organizations set up a rule to have the web-server handle connections to the hostname on port 80 (the “web port”), or redirect it to another system if the web-server is a different machine.
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 organizations set up a rule to have the web-server handle connections 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:

Sometimes the scheme can perform this function:
Sometimes the scheme can perform this function:
Using schemes works as well and can be done automatically using the appropriate software (e.g., a browser would add ‘https://’, 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.
Using schemes works as well and can be done automatically using the appropriate software (e.g., a browser would add ‘https://’, 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.

Hầu hết thời gian chúng ta có thể vui vẻ (và dễ dàng) bỏ qua việc nhập phần ‘www’ của URL cho các trang web yêu thích của chúng tôi, nhưng luôn có khả năng bạn có thể gặp phải trang web ‘hiếm’ vẫn yêu cầu.

Có cái gì để thêm vào lời giải thích? Tắt âm thanh trong các ý kiến. Bạn muốn đọc thêm câu trả lời từ những người dùng Stack Exchange có hiểu biết công nghệ khác? Xem toàn bộ chuỗi thảo luận tại đây.

Đề xuất: