Hreflang tags for multiple domains

Hi there,

I have two domains with the same content in different languages and try to figure out how to set the href lang tags:

My default English website url is https://makineagency.com
German translation subfolder: https://makineagency.com/de
Turkish translation (different url) : https://makineajans.com

Tags for default English and German version https://makineagency.com:

link rel=“canonical” href=“https://makineagency.com” />
link rel=“alternate” hreflang=“x-default” href=“https://makineagency.com”/>
link rel=“alternate” hreflang=“de-DE” href=“https://makineagency.com/de”/>
link rel=“alternate” hreflang=“tr-TR” href=“https://makineajans.com/”/>

Tags for turkish translation with a diffferent url https://makineajans.com:

link rel=“canonical” href=“https://makineajans.com” />
link rel=“alternate” hreflang=“en-US” href=“https://makineagency.com/”/>
link rel=“alternate” hreflang=“de-DE” href=“https://makineagency.com/de”/>

I would really appreciate help with this.

1 Like

Hello @Yakiin

I have a site with 7 languages. I’m placing the code in the head area of each page.

Here’s a screenshot

The site is not active.

Hope this helps :webflow_heart:

Hi Piter,

the point where I get confused is:
I need to tell Google that one of my translations is located at a different domain (makineajans.com) and also wich one the default website is (makineagency.com)

Therefore I need to set canonical and xlang tags right.
Right now Google is interpreting makineajans.com as my default page but I need Google to interpret makineagency.com as my default website.

Hi @Yakiin, you need to put the same exact tags on all sites, so from what I can see you should put this in the header of every site:

<link rel="alternate" hreflang="x-default" href="https://makineagency.com" />
<link rel="alternate" hreflang="en" href="https://makineagency.com" />
<link rel="alternate" hreflang="de" href="https://makineagency.com/de" />
<link rel="alternate" hreflang="tr" href="https://makineajans.com" />

You don’t really need the regional part of the hreflang you had specified unless you really want it (mostly useful for when you have multiple variants of a language on your site), and as far as I know canonical is already provided by Webflow so you don’t need to include that either :slight_smile: if anyone else knows better, feel free to correct me, though!

Here is a Help Center article from Google for more info (expand the “HTML tags” section):
https://support.google.com/webmasters/answer/189077

Hope that helps! :wave:t2:

3 Likes

Hi Asksj,

Thank you for your feedback. I’ll try this right away :slight_smile:

2 Likes

Thanks for jumping in @asksj !

2 Likes

Hi Stephanie (and others)

I’m currently making my first website in 2 languages.
I originally went with the Weglot solution but not happy with the translation, and maybe overkill for this site anyway.

I just need clarification of what I’m doing is correct.

Will make a subfolder called DK (Danish) - original version in English.

In index page in header of the English version I will paste:

<link rel="alternate" hreflang="x-default" href="https://mysite.com" />
<link rel="alternate" hreflang="en" href="https://mysite.com" />
<link rel="alternate" hreflang="dk" href="https://mysite.com/dk" />

Do I paste the same in the index page of the Danish version?


In about page in header of the English version I will paste:

<link rel="alternate" hreflang="x-default" href="https://mysite.com/about" />
<link rel="alternate" hreflang="en" href="https://mysite.com/about" />
<link rel="alternate" hreflang="dk" href="https://mysite.com/dk/about" />

Do I paste the same in the about page of the Danish version?

Are there any other things I need to do for this to work?

I sincerely hope you or somebody else can help me :slight_smile:

Thanks