Why it matters
- Google's guide to multi-regional sites says: "Avoid automatically redirecting users from one language version of a site to a different language version of a site", because "these redirections could prevent users (and search engines) from viewing all the versions of your site".
- Googlebot "sends HTTP requests without setting Accept-Language in the request header", so it gets the version for no language, and may never be sent to the others.
- A visitor who wants the other language, or shares a link with a friend whose phone is set to English, lands where the browser's setting sends them, not where they meant to go.
How to fix
Give each language its own address, link them with hreflang, and let the visitor choose:
html
<link rel="alternate" hreflang="ar" href="https://www.example.com/" />
<link rel="alternate" hreflang="en" href="https://www.example.com/en/" />
<a href="/en/" hreflang="en" lang="en">English</a>- If you want to suggest the visitor's language, show a banner with a link instead of redirecting.
- Keep the address a visitor asked for: a link to the Arabic page opens the Arabic page.
How we detect
- We take the page's own address, which answered our scan without
Accept-Language, as Googlebot asks. - We ask it twice more, with
Accept-Language: arandAccept-Language: en, without following a redirect and without reading the body. - We report when the two are sent to different places: one is redirected and the other is not, or each to another address. A redirect both get alike does not depend on the language and is not reported; content that changes at the same address is not read here.