Glossary

What is a canonical URL, and how do you set one?

Also called: Canonical tag, rel=canonical

Shaheer Malik
Shaheer Malik
Founder, WebValet
3 min readUpdated

The short answer

A canonical URL is the main version of a page that you want search engines to index and show. When the same content lives at several addresses, a canonical tag points to the preferred one. Google treats it as a strong hint, not a command. It weighs your tag alongside redirects, internal links and sitemaps before choosing.

  • A canonical URL is the preferred address when content exists at several URLs.
  • You declare it with a link rel=canonical tag or an HTTP header.
  • Google treats canonicals as a strong hint and may choose differently.
  • Search Console shows both your declared canonical and Google's choice.
  • Consistent signals across links, redirects and sitemaps make the choice clear.

What is a canonical URL in plain words?

Your website might show the same page at several addresses. One has www, one does not. One has a tracking code on the end. To you it is one page. To a crawler it can look like several copies.

The canonical URL is the one you nominate as the original. It tells search engines which address to index, show and credit.

Duplicates are rarely a penalty issue. Search engines simply pick one version to show. The canonical tag lets you influence which one they pick.

Why do duplicate URLs happen?

Most duplicates are accidental. Common causes include these.

  • Both http and https, or www and non-www, versions load.
  • Trailing slash and non-trailing slash versions both work.
  • Tracking and filter parameters, such as ?utm_source= or ?sort=price.
  • Print versions, session IDs or separate mobile URLs.
  • The same product listed in several categories with different paths.
  • Syndicated articles republished on partner sites.

How do you set a canonical URL?

Add a link element in the head of each duplicate, pointing to the preferred URL. Many sites also add a self-referencing canonical on the preferred page itself. For files like PDFs, you can send the canonical in an HTTP header instead.

Use full, absolute URLs. They leave less room for mistakes than relative paths.

<!-- In the <head> of each version -->
<link rel="canonical" href="https://www.example.com/services/boiler-repair" />

# Or as an HTTP header, for a PDF
Link: <https://www.example.com/guide.pdf>; rel="canonical"

Why do canonical URLs matter for a business?

Duplicates split signals. Links and attention spread across copies instead of building up one strong page. The wrong version might also appear in results, such as one with a tracking code.

Clean canonicals also help crawlers spend their time on pages that matter. On larger sites, that affects how quickly new pages are found.

For AI answers, clear canonicals make it more likely that one consistent version is retrieved and cited. AI crawlers do not all document how they treat canonical tags, so consistency across your site matters most.

How do you check your canonical URLs?

Check what you declared, then check what Google actually chose.

  1. 1

    View the page source

    Search for rel="canonical" and confirm there is exactly one, pointing where you expect.

  2. 2

    Use URL Inspection

    In Search Console, compare the user-declared canonical with the Google-selected canonical.

  3. 3

    Review the Page indexing report

    Look for pages marked as duplicates where Google chose a different canonical.

  4. 4

    Crawl your site

    WebValet Pro crawls up to 1,000 URLs a month and turns technical findings into recommendations with evidence.

Common canonical mistakes

Conflicting signals confuse search engines more than missing ones.

  • Pointing canonicals at pages that redirect, return errors or are set to noindex.
  • Adding two canonical tags, often one from a theme and one from a plugin.
  • Canonicalizing every paginated page to page one, hiding the items further in.
  • Listing non-canonical URLs in your XML sitemap.
  • Blocking duplicates in robots.txt, so crawlers never see their canonical tags.

Questions people ask

Is a canonical tag the same as a redirect?

No. A redirect sends visitors and crawlers to another URL. A canonical tag leaves the page reachable but says which version to index. Use redirects when the old URL should not exist at all.

Why did Google ignore my canonical tag?

Google treats canonicals as hints. If your internal links, sitemap or redirects point elsewhere, it may choose differently. Make all those signals agree.

Can a canonical point to another domain?

Yes. Google supports cross-domain canonicals. This is useful when a partner republishes your article and you want the original to get the credit. The partner has to add the tag on their copy.

Do canonical tags consolidate link signals?

Google generally combines signals such as links onto the canonical URL it selects. That is why clean canonicals help one page build strength. It only works when Google accepts your chosen canonical.

Should every page have a self-referencing canonical?

It is a common and sensible practice. It protects against parameter duplicates created by tracking links. It is not strictly required.

Put it to work

Check it, track it, or have it done

No trial and no lock-in. Start free, then choose.

  1. 01 · Start here

    Free check

    $0no signup

    See how ready your site is for Google and AI crawlers. About 20 seconds.

    Run a free check
  2. 02 · Track it weekly

    Pro

    $19/month · or $190/year

    25 buyer prompts on ChatGPT, Gemini and Perplexity, against 3 competitors. No trial, cancel anytime.

    Get Pro
  3. 03 · Done for you

    Hire Team Shaheer Malik

    $249/month · Pro included

    Shaheer's team does your SEO and GEO every month: pages, citations, listings and fixes.

    Schedule a call