Mobile app version of vmapp.org
Login or Join
Miguel251

: 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

@Miguel251

Posted in: #Google #Hreflang

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 :-)

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Miguel251

1 Comments

Sorted by latest first Latest Oldest Best

 

@Michele947

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" />

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme