html - 如何告诉谷歌我在不同域上有不同语言的网站

标签 html seo google-search-console

我正在建立一个新网站 luxiron.si 和 luxiron.eu。 .eu 版本为英文,.si 为斯洛文尼亚语。我如何告诉谷歌它们是相同的网站,内容相同,只是语言不同?

这对于 SEO 谷歌排名来说也是一个好主意,还是我应该在一个域中添加两种语言。

我已经尝试用谷歌搜索控制台将它们都编入索引。

最佳答案

使用 lang 声明页面的语言属性:

<html lang="en-US">
<html lang="sl">

说明页面的替代版本可用 <link>并使用 hreflang描述目标文档的语言。

<!-- On https://luxiron.eu/example point to the translated version with -->
<link rel="alternate" hreflang="sl" href="//luxiron.si/example">

关于html - 如何告诉谷歌我在不同域上有不同语言的网站,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55829066/

相关文章:

css - 输入 "enter"会导致 html 换行。为什么?

html - 如何在文本框中添加垂直线以分隔元素

c# - 在 SEO Clean Uri 中删除的字符

search - 使用嵌入式内容是否会损害 SEO/排名

seo - 使用 .htaccess 删除 www 规范 : should I still verify www and non-www in webmaster tools?

seo - 为什么我的富人名片显示在结构化数据部分?

javascript - 下拉菜单内的下拉菜单

html - 粗体和斜体在 Firefox 或 Chrome 中不起作用

AngularJS SEO 元和描述标签

google-search-console - 错误 : "The property offers is not recognized by Google for an object of type Offer" in Structured data