我遵循了谷歌关于多语种网站的建议,我有:
www.example.com/frwww.example.com/enwww.example.com自动将(头)重定向到www.example.com/fr或www.example.com/en。在我的sitemap.xml中,我没有提到www.example.com,而是提到了两个子目录,仍然遵循Google的站点地图策略:
<url>
<loc>http://www.example.com/fr/</loc>
<xhtml:link rel="alternate" hreflang="en" href="http://www.example.com/en/"/>
<xhtml:link rel="alternate" hreflang="fr" href="http://www.example.com/fr/"/>
<changefreq>daily</changefreq>
<priority>1.00</priority>
</url>
<url>
<loc>http://www.example.com/en/</loc>
<xhtml:link rel="alternate" hreflang="fr" href="http://www.example.com/fr/"/>
<xhtml:link rel="alternate" hreflang="en" href="http://www.example.com/en/"/>
<changefreq>daily</changefreq>
<priority>1.00</priority>
</url>问题是,在谷歌,主要结果是www.example.com。对于许多网站,谷歌显示的第一个结果.com/fr或.com/en取决于我们的位置,但不只是.com。
我正在考虑使用网站管理员工具,并尝试删除www.example.com,但我不确定,因为www.example.com不是真正的sitelink,我担心它只会从谷歌上删除我的网站。我错过了什么吗?还是我应该等等?
发布于 2014-01-21 21:34:12
您需要在站点地图文件中包含"/“URL,并将其指定为赫里郎 "X-违约”。这样,谷歌就会知道这是你一组页面的一部分,并且能够适当地处理它。请注意,hreflang是一个信号,而不是Google的指令,所以"/“URL可能仍然偶尔出现。
发布于 2014-01-20 16:37:21
你的总体设置听起来不错。有几件事要检查:
我倾向于使用像curl这样的命令行程序来测试这些项。请确保您返回的信息类似于以下内容:
curl --head --user-agent 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' http://example.com/
HTTP/1.1 301 Moved Permanently
Location: http://example.com/en/如果你需要做任何额外的改变,它可能需要Googlebot一个星期才能意识到主页已经移动,一个月或更多的时间才能到达网站上的所有页面。
https://webmasters.stackexchange.com/questions/57181
复制相似问题