在我的网站我有子域,示例it.mywebsite.com es.mywebsite.com等,我想为我的所有子网站添加1代码,是否有可能自动添加网站链接?
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "https://mywebsite.com/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://mywebsite.com/s/{search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
发布于 2018-03-08 03:32:07
从外观上看,您正在尝试设置一个。根据的说法,
不幸的是,谷歌目前不支持子域或子文件夹的站点链接搜索框功能。
因此,不可能为子域设置不同的SiteLinks搜索框。
https://stackoverflow.com/questions/49159601
复制相似问题