Hreflang for two different domains
-
Hello guys,
i’m using translatepress for translating my websites. Now I copied my german domainname.de Website and I want to offer the exact same page in Austria, domain is domainname.at
At the moment the german version domain.de has this hreflang tags:
<link rel="alternate" hreflang="de-DE" href="https://www.domainname.de/"> <link rel="alternate" hreflang="de" href="https://www.domainname.de/"/> <link rel="alternate" hreflang="x-default" href="https://www.domainname.de/">
The austrian version has this hreflang tags:
<link rel="alternate" hreflang="de-AT" href="https://www.domainname.at/"> <link rel="alternate" hreflang="de" href="https://www.domainname.at/"> <link rel="alternate" hreflang="x-default" href="https://www.domainname.at/">
As far as I understand, I have to tell google that domainname.at is a domainname.de in a different language. So what I need to achieve is this (am I right?):
<link rel="alternate" hreflang="de-DE" href="https://www.domainname.de/"> <link rel="alternate" hreflang="de-AT" href="https://www.domainname.at/"> <link rel="alternate" hreflang="x-default" href="https://www.domainname.de/"> <link rel="alternate" hreflang="de-AT" href="https://www.domainname.at/"> <link rel="alternate" hreflang="de-DE" href="https://www.domainname.de/"> <link rel="alternate" hreflang="x-default" href="https://www.domainname.at/">
How can I change the hreflang alternate domain and how to change de to de-AT or de-DE ?
Thanks in advance!
Regards
Benjamin
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Hreflang for two different domains’ is closed to new replies.