Skip to content
Nazmul Nikhil
Menu

Hreflang Conflicts Within Page Source Code (Semrush): Fix Contradicting Tags

Semrush found hreflang tags that contradict each other or the page's canonical. Here's how to spot the conflict and fix the source.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
Hreflang Conflicts Within Page Source Code (Semrush): Fix Contradicting Tags
Photo: 1981 Digital on Unsplash

In short

Semrush flags "Hreflang conflicts within page source code" when a page's hreflang tags contradict each other or other signals. Typical cases: two URLs for the same language code, the page's own hreflang URL not matching its canonical, or hreflang tags from two sources (plugin and theme) at once. Search engines may ignore the whole set. Output hreflang from one source and make it consistent with canonicals.

Hreflang tells search engines which page to show to which language or region. Conflicting tags leave them guessing.

Common conflicts

Conflict Fix
Same language code points to two URLs One URL per code
Self-referencing hreflang URL differs from the canonical Make them the same URL
Hreflang in HTML and in the sitemap with different values Use one method
Two plugins outputting hreflang Turn one off
Hreflang points to a URL that canonicalizes elsewhere Point to the canonical URL

How to fix it

  1. View source on a flagged page and search for hreflang.

  2. Check each code appears once and each URL is canonical.

  3. Fix the template or plugin that outputs the tags.

WordPress: use only your translation plugin's hreflang output. Shopify, Webflow and Wix: check for custom hreflang code added alongside the built-in tags. Custom builds: generate the full set from one locale map.

This guide isn't affiliated with or endorsed by Semrush.

Sources and references

TAGSSemrush Site AuditSemrush hreflang conflictsHreflang conflictHreflang canonical conflict
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with International SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com