问题原文
原帖链接 · ar099968 · CC BY-SA 3.0
on http://example.com/ server response with (response based on Accept-Language header):
HTTP/1.1 301 Found
Location: /en/
on http://example.com/en/ in page <head></head>:
<link rel="alternate" href="http://example.com/" hreflang="x-default" />
<link rel="alternate" href="http://example.com/it/" hreflang="it" />
<link rel="alternate" href="http://example.com/en/" hreflang="en" />
<link rel="alternate" href="http://example.com/es/" hreflang="es" />
<link rel="alternate" href="http://example.com/fr/" hreflang="fr" />
<link rel="alternate" href="http://example.com/ptb/" hreflang="pt" />
<link rel="alternate" href="http://example.com/chs/" hreflang="zh" />
<link rel="alternate" href="http://example.com/de/" hreflang="de" />
Google Search Console (old Web Master Tool) in International Targeting panal tell me:
URLs for your site and alternate URLs in 'x-default' that do not have return tags.
/ --> http://example.com/en/
URLs for your site and alternate URLs in 'pt' that do not have return tags.
/ --> http://example.com/ptb/
URLs for your site and alternate URLs in 'it' that do not have return tags.
/ --> http://example.com/it/
etc. for each language....
what am I doing wrong?
已采纳解答
原帖链接 · Andrey Shulman · CC BY-SA 3.0
URLs for your site and alternate URLs in 'x-default' that do not have return tags. / --> http://example.com/en/
This means that http://example.com/en/ doesn't have x-default to http://example.com/
URLs for your site and alternate URLs in 'pt' that do not have return tags. / --> http://example.com/ptb/
http://example.com/ptb/ doesn't point to http://example.com/ with x-default
URLs for your site and alternate URLs in 'it' that do not have return tags. / --> http://example.com/it/
http://example.com/it/ doesn't point to http://example.com/ with x-default
Basically, you need to have absolutely the same hreflang alternate tags all over your website; on every language absolutely the same tags.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
