Est-il vraiment nécessaire d'ajouter «www» aux URL de site Web dans les navigateurs modernes maintenant?

Table des matières:

Est-il vraiment nécessaire d'ajouter «www» aux URL de site Web dans les navigateurs modernes maintenant?
Est-il vraiment nécessaire d'ajouter «www» aux URL de site Web dans les navigateurs modernes maintenant?

Vidéo: Est-il vraiment nécessaire d'ajouter «www» aux URL de site Web dans les navigateurs modernes maintenant?

Vidéo: Est-il vraiment nécessaire d'ajouter «www» aux URL de site Web dans les navigateurs modernes maintenant?
Vidéo: Tutoriel JavaScript : Découvert d'Alpine.js - YouTube 2024, Peut
Anonim
Lorsque nous visitons un site Web à l’aide de notre navigateur préféré, nous tapons généralement la partie fondamentale de l’URL et «arrivons» à l’emplacement souhaité sans aucun problème. Mais avons-nous atteint un point où nous pouvons commencer à supprimer le mot "www" des URL de tous les sites Web, ou est-il encore nécessaire de l'ajouter?
Lorsque nous visitons un site Web à l’aide de notre navigateur préféré, nous tapons généralement la partie fondamentale de l’URL et «arrivons» à l’emplacement souhaité sans aucun problème. Mais avons-nous atteint un point où nous pouvons commencer à supprimer le mot "www" des URL de tous les sites Web, ou est-il encore nécessaire de l'ajouter?

La séance de questions et réponses d’aujourd’hui nous est offerte par SuperUser, une sous-division de Stack Exchange, un groupe de sites Web de questions-réponses dirigé par la communauté.

La question

Lecteur superutilisateur Celeritas veut savoir si l’ajout de «www» aux URL de sites Web a un impact ou non:

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

Est-il vraiment nécessaire d’ajouter maintenant «www» aux URL de sites Web ou pouvez-vous simplement l’omettre lorsque vous naviguez sur Internet et ne pas rencontrer de problèmes?

La réponse

Synetech, contributeur à SuperUser, a la solution pour nous:

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.

La plupart du temps, nous pouvons heureusement (et facilement) omettre de taper la partie "www" des URL de nos sites Web préférés, mais il est toujours possible que vous rencontriez le site Web "rare" qui en a toujours besoin.

Avez-vous quelque chose à ajouter à l'explication? Sound off dans les commentaires. Voulez-vous lire plus de réponses d'autres utilisateurs de Stack Exchange doués en technologie? Découvrez le fil de discussion complet ici.

Conseillé: