Google 多语言网站搜索结果中的站点名称

Site name in Google search results for multi-language websites

使用 Schema.org,我可以为我的网站设置名称,以便在 Google 搜索中可见:https://developers.google.com/structured-data/site-name

示例:

<script type="application/ld+json">
    {  "@context" : "http://schema.org",
       "@type" : "WebSite",
       "name" : "Your WebSite Name",
       "alternateName" : "An alternative name for your WebSite",
       "url" : "http://www.your-site.com"
    }
    </script>

如果我有多语言网站怎么办? 5 种语言 → 5 个索引页,例如:http://www.example.com/en/

不同的网站名称,每种语言设置不同的URL是否正确?我找不到任何相关文档。

您是否使用不同的路径 (…/en/ + …/de/)、不同的子域 (en.example.com + de.example.com) 或不同的域 (example.com + example.net), 你有不同的(尽管是翻译的)网站。

因此,请为您的每个网站使用单独的 WebSite 项目。

示例(使用 RDFa)

http://example.com/en/ 上,您可以指定:

<head typeof="schema:WebSite">
  <title property="schema:name">Example</title>
  <link property="schema:url" rel="canonical" href="http://example.com/en/" />
</head>

http://example.com/de/ 上,您可以指定:

<head typeof="schema:WebSite">
  <title property="schema:name">Beispiel</title>
  <link property="schema:url" rel="canonical" href="http://example.com/de/" />
</head>