Playbook
seo
medium
Fix a broken canonical tag
Your canonical tag points to the wrong URL — or to a 404. Here is how to find the right canonical and stop losing rankings.
15 minutesLast reviewed 2026-06-09
What is happening
The <link rel="canonical"> tag tells Google which URL is the "real" version of a page. If it points somewhere wrong, Google merges ranking signals into the wrong URL — or drops the page entirely.
Fix it
view-source: in any browser) and find the <link rel="canonical" href="..."> line.Canonical rules of thumb
href="/page" is allowed but unreliable across CMSes — use href="https://yourdomain.com/page".Common gotchas
canonical" href="http:// and replace.What this doesn't do
This is for the broken-canonical case. For duplicate content across multiple URLs, see canonical vs 301 redirect.