WWW consistency
Checks if www and non-www redirect consistently.
Pourquoi est-ce important ?
www.example.com and example.com are technically two separate domains. Without a redirect, search engines see both as separate websites and split link value and authority.
Comment le corriger ?
Choose one preferred form (www or non-www) and redirect the other via 301. Set the preference in Google Search Console. Use a canonical tag that always points to the preferred form.
Ce check note de 0 à 100. Sous 50 c’est un échec, 50 à 89 un avertissement, 90 ou plus c’est bon. Après chaque crawl vous voyez la note par page dans le rapport, avec une courte explication.
Questions fréquentes
Checks if www and non-www redirect consistently.
www.example.com and example.com are technically two separate domains. Without a redirect, search engines see both as separate websites and split link value and authority.
Choose one preferred form (www or non-www) and redirect the other via 301. Set the preference in Google Search Console. Use a canonical tag that always points to the preferred form.
Exemple
Copiez le code ci-dessous et adaptez le nom de domaine, la marque et le contenu à votre situation.
# Choose one preference: www OR non-www (here: enforce www)
# Nginx
server {
listen 443 ssl;
server_name yourdomain.com; # non-www
return 301 https://www.yourdomain.com$request_uri;
}
# Apache .htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]