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:您网站的替代名称,
url:http://www.your-site.com
}
< / script>
如果我有多语言网站会怎样? 5种语言→5个索引页面,例如: http://www.example.com/en/
为不同网站名称的每种语言设置不同的网址是否正确?我找不到任何相关的文档。
无论您使用不同的路径( ... / en /
+ ... / de /
),不同子域( en.example.com
+ de.example.com
)或不同的域( example.com
+ example.net
),你有不同的(尽管翻译)网站。
因此,请使用单独的 在 并在 Using Schema.org, I can set the name for my website so it’s visible in Google Search: https://developers.google.com/structured-data/site-name Example: What if I have multi-language website? 5 languages → 5 index pages, e.g.: Is it right to set different URLs for each language with different website names? I cannot find any documentation about that. Whether you use different paths ( So use a separate On And on
这篇关于Google多语言网站的搜索结果中的网站名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!网站$
示例(使用RDFa)
http://example.com/en/
上,您可以指定:
< head typeof =schema:WebSite>
< title property =schema:name>示例< / title>
< link property =schema:url =canonicalhref =http://example.com/en//>
< / head>
http://example.com/de/
,你可以指定:
< head typeof =schema:WebSite>
< title property =schema:name> Beispiel< / title>
< link property =schema:url =canonicalhref =http://example.com/de//>
< / head>
<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>
http://www.example.com/en/
…/en/
+ …/de/
), different subdomains (en.example.com
+ de.example.com
) or different domains (example.com
+ example.net
), you have different (albeit translated) websites. WebSite
item for each of your sites.Example (using RDFa)
http://example.com/en/
, you could specify:<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/
, you could specify:<head typeof="schema:WebSite">
<title property="schema:name">Beispiel</title>
<link property="schema:url" rel="canonical" href="http://example.com/de/" />
</head>