Googlebot and FAMUOS $ _SERVER ['HTTP_ACCEPT_LANGUAGE']

I made $_SERVER['HTTP_ACCEPT_LANGUAGE'] on my site where there are two languages โ€‹โ€‹PL and EN.

I really did not suspect that Google would be reindexing my site (which means TITLE and DESC) from PL to EN in this way.

Should he use PL, since he scans Polish domains, hmmmmrrrr can't understand?

Anyway, I can detect googlebot and install PL again

But will it not be cloacking or smthing?

Could someone tell me that it would be a good decision to get it straight, would Google and I be happy?

+4
source share
1 answer

HTTP_ACCEPT_LANGUAGE means the language in which CLIENT is supported (the clientโ€™s browser, in this case the crawler), and the information that the client sends with the request (for example, ip, etc.) is not what the server sends the client. To tell the client which languages โ€‹โ€‹your site supports, you should use meta tags, for example, in your case

 <meta http-equiv="content-language" content="pl, en" /> 

will inform the client that your site prefers PL language, but supports ENG.

This is the w3c page about it

+1
source

Source: https://habr.com/ru/post/1346627/


All Articles