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.
我正在构建一个Web门户,其中语言内容通常取决于浏览器发送的“接受语言”。因此,相同的内容URI将根据其浏览器设置向不同的用户提供不同的内容。
I'm very curious to know how this will affect search indexing. Does Google index using all languages, and is it handled well?
我很想知道这将如何影响搜索索引。谷歌是否使用所有语言进行索引,处理得好吗?
5 个解决方案
#1
6
They don't send accept-language, so the site will be indexed in the default language that you select.
他们不发送接受语言,因此网站将使用您选择的默认语言编制索引。
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.
我建议您为每种语言使用不同的URL,不仅适用于搜索引擎,还允许用户更改网站语言而不更改“接受语言”,并允许用户使用所选语言向朋友发送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.
在这个答案中,你有我如何在.net中管理它,但你会明白:使用“accept-language”进行第一次重定向,并且只使用url。
#2
1
Probably the Googlebot doesn't send any accept-language. I would program the site to spit all-information, in all languages if no accept-language is sent.
可能Googlebot不会发送任何接受语言。如果没有发送接受语言,我会编程网站以所有语言吐出所有信息。
Another solution is to have links that change the language by adding a URL query but not changing the base part of the URL, so Googlebot will still traverse all languages and point people to the right address. Having links to change language is also useful for the cases when the user actually wants to do it.
另一种解决方案是通过添加URL查询但不更改URL的基本部分来更改语言的链接,因此Googlebot仍将遍历所有语言并将人们指向正确的地址。拥有更改语言的链接对于用户实际想要这样做的情况也很有用。
Disclaimer: I work for Google but I don't have a clue about the Googlebot.
免责声明:我在谷歌工作,但我对谷歌机器人没有任何线索。
#3
1
The accept-language HTTP header is not mandatory, so you should provide a default for when the user agent doesn't send one.
接受语言HTTP标头不是必需的,因此您应该在用户代理未发送默认值时提供默认值。
The Googlebot which indexes pages for Google will probably not send an accept-language, since it is interested in all languages and doesn't want to be constrained to certain ones.
为Google编制索引页面的Googlebot可能不会发送接受语言,因为它对所有语言感兴趣并且不希望受限于某些语言。
#4
1
This I asked myself exactly. According to the W3C this is for sure possible and we can display a website in different languages. We can also display a menu with other languages and store this in a cookie for the user so we can perfectly display a site in different languages for users.
我完全问自己。根据W3C,这肯定是可能的,我们可以显示不同语言的网站。我们还可以显示包含其他语言的菜单,并将其存储在用户的cookie中,以便我们可以为用户完美地显示不同语言的网站。
So when a user is logged in we show default english, but he can pick from a menu a other language. We store this in a cookie and off we go. We CAN show all URL's in different languages.
因此,当用户登录时,我们显示默认的英语,但他可以从菜单中选择其他语言。我们将它存储在一个cookie中然后我们离开。我们可以用不同的语言显示所有URL。
However search engine breaks this possibility and INSIST we have a different URL for each language, and punish US for showing duplicate content!!! (Although the language is different the content/message is the same.... right???)
但是搜索引擎打破了这种可能性,INSIST我们为每种语言设置了不同的URL,并惩罚美国显示重复的内容! (虽然语言不同,内容/消息是相同的......对吗???)
This method of working with search engines basicly suck. Although I also understand that WE (webdesigners) don't have a good option to tell a client in what languages a specific URL is available in (except using different URL's)
这种使用搜索引擎的方法基本上很糟糕。虽然我也明白WE(网站设计师)没有一个很好的选择来告诉客户使用哪种语言提供特定的URL(除了使用不同的URL)
Ries vanTwisk
#5
-4
Kien Problem!
Google doesnt care what language the text is in it just indexes!
谷歌并不关心文本是什么语言只是索引!
#1
6
They don't send accept-language, so the site will be indexed in the default language that you select.
他们不发送接受语言,因此网站将使用您选择的默认语言编制索引。
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.
我建议您为每种语言使用不同的URL,不仅适用于搜索引擎,还允许用户更改网站语言而不更改“接受语言”,并允许用户使用所选语言向朋友发送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.
在这个答案中,你有我如何在.net中管理它,但你会明白:使用“accept-language”进行第一次重定向,并且只使用url。
#2
1
Probably the Googlebot doesn't send any accept-language. I would program the site to spit all-information, in all languages if no accept-language is sent.
可能Googlebot不会发送任何接受语言。如果没有发送接受语言,我会编程网站以所有语言吐出所有信息。
Another solution is to have links that change the language by adding a URL query but not changing the base part of the URL, so Googlebot will still traverse all languages and point people to the right address. Having links to change language is also useful for the cases when the user actually wants to do it.
另一种解决方案是通过添加URL查询但不更改URL的基本部分来更改语言的链接,因此Googlebot仍将遍历所有语言并将人们指向正确的地址。拥有更改语言的链接对于用户实际想要这样做的情况也很有用。
Disclaimer: I work for Google but I don't have a clue about the Googlebot.
免责声明:我在谷歌工作,但我对谷歌机器人没有任何线索。
#3
1
The accept-language HTTP header is not mandatory, so you should provide a default for when the user agent doesn't send one.
接受语言HTTP标头不是必需的,因此您应该在用户代理未发送默认值时提供默认值。
The Googlebot which indexes pages for Google will probably not send an accept-language, since it is interested in all languages and doesn't want to be constrained to certain ones.
为Google编制索引页面的Googlebot可能不会发送接受语言,因为它对所有语言感兴趣并且不希望受限于某些语言。
#4
1
This I asked myself exactly. According to the W3C this is for sure possible and we can display a website in different languages. We can also display a menu with other languages and store this in a cookie for the user so we can perfectly display a site in different languages for users.
我完全问自己。根据W3C,这肯定是可能的,我们可以显示不同语言的网站。我们还可以显示包含其他语言的菜单,并将其存储在用户的cookie中,以便我们可以为用户完美地显示不同语言的网站。
So when a user is logged in we show default english, but he can pick from a menu a other language. We store this in a cookie and off we go. We CAN show all URL's in different languages.
因此,当用户登录时,我们显示默认的英语,但他可以从菜单中选择其他语言。我们将它存储在一个cookie中然后我们离开。我们可以用不同的语言显示所有URL。
However search engine breaks this possibility and INSIST we have a different URL for each language, and punish US for showing duplicate content!!! (Although the language is different the content/message is the same.... right???)
但是搜索引擎打破了这种可能性,INSIST我们为每种语言设置了不同的URL,并惩罚美国显示重复的内容! (虽然语言不同,内容/消息是相同的......对吗???)
This method of working with search engines basicly suck. Although I also understand that WE (webdesigners) don't have a good option to tell a client in what languages a specific URL is available in (except using different URL's)
这种使用搜索引擎的方法基本上很糟糕。虽然我也明白WE(网站设计师)没有一个很好的选择来告诉客户使用哪种语言提供特定的URL(除了使用不同的URL)
Ries vanTwisk
#5
-4
Kien Problem!
Google doesnt care what language the text is in it just indexes!
谷歌并不关心文本是什么语言只是索引!