在搜索中显示特定国家/地区的网站

Show country specific website in search

我们有一个网站,我们想要复制并使用特定国家/地区的域名。

我们如何才能确保只有这些国家/地区特定的域名出现在搜索中?

即- 确保 http://getbunnybox.nl 显示给荷兰语搜索者而不是 https://getbunnybox.com.

这可能吗?

HTML5 提供 alternate link type,它与 hreflang 属性一起可用于翻译:

If the alternate keyword is used with the hreflang attribute, and that attribute's value differs from the root element's language, it indicates that the referenced document is a translation.

hreflang(以及 lang)属性 takes a BCP 47 language tag as value, which

因此,如果您有一份荷兰语文档并且想要定位到荷兰,则可以使用语言标签 nl-NL(如果国家/地区无关紧要,则可以使用 nl,并且 nl-BE 如果您想定位在比利时等地讲荷兰语的人)。

getbunnybox.comeach page,您可以 link 使用 link 元素到 getbunnybox.nl 的每个相应页面(反之亦然):

<!-- on http://getbunnybox.com/hello -->
<link href="http://getbunnybox.nl/hallo" rel="alternate" hreflang="nl-NL" />