Set a canonical URL

Tell Google which version of a page is the real one when several URLs serve it.

What it means

The same page is often reachable at multiple URLs (with/without www, with query parameters, http/https). A canonical link tells search engines which one to index so the duplicates don't compete.

Why it matters

Without a canonical, Google may index the wrong variant and split your ranking signals across duplicate URLs — weakening the page for its most important searches.

How to fix it

  1. Add <link rel="canonical" href="https://yourdomain.com/preferred-path"> to the page head.
  2. Most SEO plugins output this automatically — check that the setting is on and points at the live domain.
  3. Make sure the canonical is absolute (full URL with https) and self-referencing on normal pages.
  4. Verify the page renders on one canonical domain — redirect http→https and non-www→www (or vice versa) at the server.

Common mistakes

How to check it worked

Open Search Console's URL Inspection for the page and compare 'User-declared canonical' with 'Google-selected canonical'. They should match.

Helpful tools

Not sure if this affects your site? Analyze your website for free or compare it with a competitor.

Related guides

Browse all 38 fix guides