搜索引擎和浏览器接受语言 [英] Search engines and browser accept-language

查看:163
本文介绍了搜索引擎和浏览器接受语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个Web门户,其中的语言内容通常取决于浏览器发送的接受语言".因此,相同的content-URI将根据不同的浏览器设置为不同的用户提供不同的内容.

I'm building a web portal where language content will generally depend on the "accept-language" sent by the browser. The same content-URI will thus serve different content to different users depending on their browser setting.

我很好奇这将如何影响搜索索引. Google是否使用所有语言编制索引,并且处理得当吗?

I'm very curious to know how this will affect search indexing. Does Google index using all languages, and is it handled well?

推荐答案

他们不发送接受语言,因此该网站将以您选择的默认语言编制索引.

They don't send accept-language, so the site will be indexed in the default language that you select.

我建议您为每种语言(不仅对于搜索引擎)使用不同的URL,而且还允许用户在不更改接受语言"的情况下更改站点语言,并允许用户通过以下方式将URL发送给朋友选择的语言.

I recommend you to have different URL for each language, not only for the search engines, but for letting the user change the site language without changing the "accept-language" and letting the user to send a URL to a friend with the language selected.

在此 answer 您具有在.net中对其进行管理的方式,但是您会明白:使用"accept-language"进行第一个重定向,并且它们仅使用url播放.

In this answer you have how I managed it in .net, but you will get the idea: Using the "accept-language" the make the first redirect, and them play only with the url.

这篇关于搜索引擎和浏览器接受语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆