Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 3 replies, has 0 voices.

Last updated by Dražen 1 week, 3 days ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
November 17, 2025 at 6:13 pm #17585907

tomasB-12

Background of the issue:
I am trying to find hreflang in the code and set up a canonical URL so that for both domains, it always shows the right domain. The site I need help with is hidden link and hidden link

Symptoms:
I am unsure how to find hreflang in the code and set up a canonical URL.

Questions:
How do I find hreflang in the code?
How do I set up a canonical URL for both domains to show the correct domain?

November 19, 2025 at 3:29 pm #17592554

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello there,

I checked your information, as well as the source code on your website (both versions: .de and .at). On a first analysis, it looks that the website is behaving as expected.

Since you have two versions of German, it's necessary that both pages have the same canonical, so search engines don't identify your pages as duplicate content. Your current canonical settings respect that (on both pages, the canonical is .at). That avoids duplicate content penalization.

If you want to change the canonical, that must be done via Yoast (I imagine that's the plugin you're using, since we don't have your debug information), and is not included in the scope of WPML's support.

Let me know if you have any questions regarding WPML.

November 19, 2025 at 5:34 pm #17592987

tomasB-12

Hello, i think i found the best descriptiion of my problem, and i am trying to find the solution for this exact problem hidden link and would like to know how to solve this.

Yes i have two versions of german because i have two different domains per lang, and you are saying that if i "duplicate" the content on domain1 to domain2, the canonical on domain2 should be the same as domain1 ?

The problem si that our clients SOE specialist is saying that this is wrong and both domains need to have their own canonical, yet you are saying that the "duplicated" content must show to the original content...

So at this point i dont know who is right or wrong i just need to solve this.

If you want i can give you access to the site.

November 20, 2025 at 6:56 am #17593915

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Lucas is OFF today and I will cover for him, hope that is okay.

As Lucas said, it is expected that canonical shows default language / domain if you content is duplicate / exactly same and in same language, this is expected as otherwise you might get penalized by Google for trying to index and rank for same duplicated content, this is considered bad practice. I have checked further online and this confirms my opinion:

- hidden link
- hidden link

You want to have different canonical when you want to rank and index both websites, but this can cause issues and troubles with SEO, as same duplicate content across website is considered bad practice, so this way with same canonical you are saying to Google, "yes I know this is duplicate from this original page, please consider main page as correct version and this is just technical copy for other reasons."

Maybe we have not understood your case correctly, feel free to get back to us with more information.

Regards,
Drazen