1

I'm about to turn my website into one that's for multiple languages. I read these two points from Google Search Central which I find rather conflicting.

The first point states:

Use different URLs for different language versions Google recommends using different URLs for each language version of a page rather than using cookies or browser settings to adjust the content language on the page. If you use different URLs for different languages, use hreflang annotations to help Google search results link to the correct language version of a page. If you prefer to dynamically change content or reroute the user based on language settings, be aware that Google might not find and crawl all your variations. This is because the Googlebot crawler usually originates from the USA. In addition, the crawler sends HTTP requests without setting Accept-Language in the request header.

And the second point states:

Avoid automatically redirecting users from one language version of a site to a different language version of a site. For example, don't redirect based on what you think the user's language may be. These redirections could prevent users (and search engines) from viewing all the versions of your site.

If I'm using different urls to satisfy different languages, wouldn't it make sense to redirect the user to the correct language if the default language is not easily understood?

Also what's even more confusing is that google violates its own guideline. How? because if you change your preferred language in your browser settings then load the google homepage, it will pick the first language in the accept-language HTTP request header and serve the home search page in that language. In a sense that is almost like a redirect.

You can confirm this on a command line by executing this command, replacing es with your 2-character language of your choice:

curl -H "Accept-language: es" https://www.google.com

Then somewhere in the first 250 bytes of output you'll see:

<html itemscope="" itemtype="http://schema.org/WebPage" lang="es-419">

Assuming I can serve the page both in french and english, and someone with a web browser that accepts french pages only wants to browse my website.

What am I supposed to do to make google happy? Do I:

  1. Follow google's recommendation and show the english version then pray the reader can understand just enough english to select the french option,

OR

  1. Copy Google's idea by serving the french page because the browser reported that it accepts french pages only?

2 Answers 2

0

I wouldn't look at what Google does themselves on their homepage. It's irrelevant since Google is the search engine.

Let's assume you have 2 versions of the same page, in two languages and the URLs are:

Suppose a person ends up on the English page. What to do?

Remember that Google doesn't send the Accept-Language setting in the request header. So if there is no preferred language you do nothing. Google can therefore crawl uninterrupted.

However, if you do know the user's language preferences, and they prefer French, then you can either, pop up a modal/requester, asking in both French and English whether the user would like to switch to French, or just simply switch to French without asking. I really prefer the former, because it gives the user more control.

0

The Accept-Language header is just plain WRONG in many cases. For example:

  • An English as a second language user that would prefer their native language, but has downloaded a browser set to English because they are the easiest to download.
  • A person using a friend's computer, where the friend is bi-lingual
  • A person visiting an internet cafe
  • A crawler that can accept any language but which finds that many sites fail to load with a single accept-language.

Redirects are hard for users to recover from. They can completely stymie bots and kill SEO. Rather than redirecting, you should give users with non-matching accept-language headers the option to click to change language. Create a prominent notice like:

This page is in French, but it looks like you would prefer English. Click here to view this page in English.

For further reading see How should I structure my URLs for both SEO and localization?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.