: Setting proper hreflang tags for google There is one Website for the main company translated in two languages: main-company.com/en/ main-company.com/de/ The company also has a subsidiary, linked
There is one Website for the main company translated in two languages:
main-company.com/en/
main-company.com/de/
The company also has a subsidiary, linked under:
main-company.com/en/subsidiary.html
main-company.com/de/subsidiary.html
Now you can access the subsidiary with its on domainname pointing to the same root and redirected with .htacess to "subsidiary.html" in both languages:
subsidiary.com/en/subsidiary.html
subsidiary.com/de/subsidiary.html
Accessing the site with the domain subsidiary.com makes you browse the entire site under the domainname "subsidiary.com".
The question is:
How do I set the proper hreflang tags for google?
Do I have to set the hreflang tag for both domainnames like this in each page?
<link rel="alternate" hreflang="de" href="http://main-company.com/de/subsidiary.html" />
<link rel="alternate" hreflang="en" href="http://main-company.com/en/subsidiary.html" />
<link rel="alternate" hreflang="de" href="http://subsidiary.com/de/subsidiary.html" />
<link rel="alternate" hreflang="en" href="http://subsidiary.com/en/subsidiary.html" />
or is it a problem to set the hreflang tags twice for de and en with different domainnames?
Thanks :-)
More posts by @Miguel251
1 Comments
Sorted by latest first Latest Oldest Best
In each page you should put the alternative languages for that page, and include that page too.
As Google says: "If you have multiple language versions of a URL, each language page must identify all language versions, including itself."
For example in main-company.com/de/subsidiary.html:
<link rel="alternate" hreflang="de" href="http://main-company.com/de/subsidiary.html" />
<link rel="alternate" hreflang="en" href="http://main-company.com/en/subsidiary.html" />
And in subsidiary.com/de/subsidiary.html:
<link rel="alternate" hreflang="de" href="http://subsidiary.com/de/subsidiary.html" />
<link rel="alternate" hreflang="en" href="http://subsidiary.com/en/subsidiary.html" />
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.