문제

Suppose I have 2 pages on my web site : www.mydomain.com/pageX.html in english and www.mydomain.com/fr/pageX.html being the french translation of the first

Which meta tag am I suppose to use to tell Google that the second is the translation of the first (meta information) ?

도움이 되었습니까?

해결책

The standard way to do this would be:

<link rel="alternate" hreflang="fr" href="/fr/" title="This document in French">

… and it appears that Google support this standard.

다른 팁

The only way to do this (that i'm aware of) is to tell google not to translate the page. Google uses language detection to see if the webpage is in the same language as the user, if not it provides the option to translate.

You cannot do anything fancy such as tell google to forward french users to /fr/ though, that's something you would have to manage manually.

<meta name="google" content="notranslate" />
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top