开发者

Googlebot and FAMUOS $_SERVER['HTTP_ACCEPT_LANGUAGE']

开发者 https://www.devze.com 2023-02-21 20:24 出处:网络
I did $_SERVER[\'HTTP_ACCEPT_LANGUAGE\'] on my site, where have two langs PL 开发者_运维问答and EN.

I did $_SERVER['HTTP_ACCEPT_LANGUAGE'] on my site, where have two langs PL 开发者_运维问答and EN.

I really didn't suspect Google would reindex my site (meaning TITLE and DESC) from PL to EN that way.

Shouldnt it use PL since it is crawling Polish domains, hmmmmrrrr cant understand ?

Anyway i can detect googlebot and set them PL again

But it wouldnt be cloacking or smthing ?

Anyone could tell me what would be good solution to get it straight so, me and Google would be happy ?


the HTTP_ACCEPT_LANGUAGE means the language that the CLIENT (the client browser,in this case the crawler)supports and it's an information the client send with the request(like the ip,etc.),it's not something the server sends to the client. To tell the client what languages your website supports you must use the meta tags,in your case for example

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

will tell the client that you site prefer PL language but support ENG.

This is the w3c page about it

0

精彩评论

暂无评论...
验证码 换一张
取 消