• Resolved beni610

    (@beni610)


    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

    • This topic was modified 2 years, 8 months ago by beni610.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Thank you for letting us know about this!

    TranslatePress adds extra region independent hreflang tags, along with region dependent. They point to the same page.

    The region independent language tags help search engines provide the correct link to visitors without country specification or with a different country specification than those available.

    A few time ago we created a tool that removes the hreflang.If you have the latest version of TranslatePress, go to Advanced settings and if you scroll down you will find this function that is called “Remove duplicate hreflang”.

    Kind Regards,

    Thread Starter beni610

    (@beni610)

    Hello Anghel,

    thanks for your repsonse. Sadly, this doesnt solve my problem. The question is, if translatepress is capable of do what I need or if I need to delete hreflang from translatepress an set it via other plugin. How to completely delete hreflang from translatepress?
    Thanks!

    Regards
    Benjamin

    Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    At the moment we have a setting called “Remove duplicate hreflang” which allows you to remove the hreflang. This feature can be found in the Advanced tab of TranslatePress.

    Try the latest version of our plugin and see if this could be useful for you!

    Kind Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hreflang for two different domains’ is closed to new replies.