Key takeaways

  • Every indexable page names itself as canonical, with an absolute URL in the <head>.
  • A URL with no reason to exist gets a permanent redirect, not a canonical tag.
  • Canonical tags, redirects, internal links and the sitemap must all name the same URL.
  • Paginated pages and language versions are not duplicates, so they keep their own canonicals.
  • robots.txt and noindex are not canonical tools, and JavaScript must not change the tag.

Canonical rules exist so that every copy of a page tells Google the same thing: which one URL should appear in search. The short version is that the canonical page names itself, retired copies redirect, and nothing on the site points anywhere else. Checking them belongs in any SEO website audit, and the nine rules below are what to check.

If you want to know when a canonical tag is worth adding in the first place, and why duplicate content is not a penalty, start with my article on canonical tags and the duplicate content penalty myth. This one is the rulebook for getting the tag and the signals around it right.

I first published this article in 2025 and have rewritten it, removing percentages and timelines I could not trace to any source. Each rule now comes from Google’s own documentation, and I checked each one against this website on 28 November 2026.

The nine canonical rules at a glance

Rule In short What I saw on this site
1. Self-referencing canonical The canonical page names itself Every post I checked names its own URL
2. Absolute URL, in the head Full https address, only in <head> Canonical tags carry the full https address
3. Parameters point to the clean URL Tracking copies name the clean page A post opened with ?utm_source=test names the clean URL
4. JavaScript does not change it Set it in the HTML, once Tag is in the server HTML
5. Redirect what should not exist Permanent redirect, not a tag http, no trailing slash and ?p= addresses all redirect
6. One answer from every signal Links, sitemap, tags agree Sitemap lists clean URLs only
7. No robots.txt or noindex for this job Wrong tools for canonicals Not used for canonicals here
8. Pagination and languages keep their own Not duplicates Blog page 2 names itself
9. Header canonical for PDFs Link element works only in HTML No PDFs on this site to test

Rules for the canonical tag itself

Google’s guide to consolidating duplicate URLs is the source for most of these rules. On the tag itself it says “Do include a rel=”canonical” link on the canonical page itself (also known as a self-referential canonical).” That is rule 1.

A page outline with its head section highlighted at the top and a link line curving from the head back to the same page, beside a faded copy whose link points to the first page
Figure 1. The canonical page names itself in the head, and its copies name it too.

Rule 2 is about form. Google says “The rel=”canonical” link element is only accepted if it appears in the <head> section of the HTML” and “Use absolute paths rather than relative paths with the rel=”canonical” link element.” A plugin or a page builder can push the canonical tag below an element that ends the head early, so it is no longer in the head Google reads. View the page source and check that the tag sits above the first visible content.

Rule 3 is where the self-referencing tag earns its place. When I opened one of my own posts with ?utm_source=test added to the address, the canonical tag still named the clean URL without the parameter. The same happened when I typed the slug in capital letters: WordPress served the page, and the tag named the lowercase address. Nothing redirects in those two cases. The canonical tag is the only thing telling Google which address is the real one.

Rule 4 covers JavaScript. Google says to “make sure that JavaScript doesn’t change the canonical link element”, and that if you cannot set it in the HTML source, you should “leave it out and only set it with JavaScript.” One tag, set once, is the rule. Rule 9 belongs here too: for a PDF or another non-HTML file, Google says you can “return a rel=”canonical” HTTP header”, because the link element “only works for HTML pages, not for files such as PDF.”

Free tool · SEO ROI Calculator

Fixing canonical tags on pages that matter? Estimate what their keywords are worth before you plan the work.

Enter search volume, CPC and your current ranking to estimate traffic, revenue and value for a keyword. Free.

Calculate your SEO ROI →

Rules that keep every signal on the same URL

Rule 5 decides between a tag and a redirect. If nobody needs the duplicate address, redirect it. Google’s page on redirects and Google Search recommends “a permanent server-side redirect whenever possible” and says “The 301 and 308 status codes mean that a page has permanently moved to a new location.” A 302 does not help here: Google’s indexing pipeline “doesn’t use the redirect as a signal that the redirect target should be canonical.”

Four round icons for a redirect, a sitemap, a link and a code tag, each with an arrow converging on one highlighted page
Figure 2. Redirects, the sitemap, internal links and the tag should all name the same URL.

On this site, the http version of the home page, a post address without its trailing slash, and the short ?p= address of a post all answer with a 301 to the https address with the slash. Page 1 of the blog archive redirects to the archive itself. These are the copies nobody needs, so none of them relies on a tag.

Rule 6 is the one most sites break. Google says “Don’t specify different URLs as canonical for the same page using different canonicalization techniques”, and also: “All pages listed in a sitemap are suggested as canonicals.” So the canonical tag, the redirect target, the sitemap entry and your internal links must all name the same address. I checked the post sitemap here: it lists clean addresses only, with no parameters. When the signals disagree, deciding which URL should win comes first, and I cover that decision in picking one winner among duplicate pages.

Rule 7 names two tools that are not for canonicals. Google says “Don’t use the robots.txt file for canonicalization purposes” and “We don’t recommend using noindex to prevent selection of a canonical page within a single site.” A page blocked in robots.txt cannot even be crawled, so Google never sees the canonical tag on it.

Free tool · Ping My URL

Changed canonical tags or set new redirects on key pages? Let search engines know these URLs changed.

Notify Google and other search engines about up to 5 new or updated URLs at once. Free, no sign-up.

Ping your URLs →

Rules for pages that look alike but are not duplicates

Rule 8 stops the most common overreach: pointing every similar page at one main page. Google’s guide to pagination says “Don’t use the first page of a paginated sequence as the canonical page” and “Instead, give each page its own canonical URL.” Page 2 of a category lists different items from page 1, so it is not a copy.

A row of paginated pages with position dots, each with a loop arrow pointing back to itself, and a globe above two language pages that also loop back to themselves
Figure 3. Paginated pages and language versions are not copies, so each keeps its own canonical.

My own blog archive follows this. Page 2 of the archive carries a canonical tag that names page 2. It also still carries rel=”prev” and rel=”next” links, which do no harm, but Google’s pagination page says plainly that “Google no longer uses these tags.” Other search engines may.

Language and country versions work the same way. Google’s guide says that with hreflang you should “make sure to specify a canonical page in the same language”, or the best substitute language if there is none. A French page that names the English page as its canonical tells Google the French page is a copy, which works against the hreflang tags on the same page.

Rank Check Reports

Cleaned up canonicals? A rank check shows which URL ranks for each keyword, so you can see the page you chose is the one in Google.

A live Google check of your keywords on desktop and mobile · from $14.99 per check · no subscription · report within one working day

Order a rank check report →

When Google still picks a different URL

Even with every rule followed, the tag is not an order. Google’s page on canonicalization says “indicating a canonical preference is a hint, not a rule.” When Google chooses another URL, go back through rules 5 to 7 first, because conflicting signals, such as a stray internal link or sitemap entry, are a common cause. Then check what Google chose with URL Inspection, which is step 5 of my six-step routine for fixing duplicate content. If the pages are not really the same, Google may be right, and the answer is to make them clearly different rather than to push the tag harder.

FAQ

Does every page need a canonical tag?

Google asks for a self-referencing canonical on the canonical page itself. WordPress SEO plugins usually add one to every post and page, as they do on this site. Check that the address in it is the one you want.

Can I use a canonical tag and a redirect on the same URL?

A redirected URL never shows its own content, so its canonical tag is never seen. Pick one: redirect the copies nobody needs, and use the tag on copies people still open.

Should filtered category pages point to the main category?

If the filter only re-sorts or narrows the same products, yes, point them to the main category. If a filtered page is one you want to rank on its own, give it its own content and its own canonical.

Eugen Platon

Eugen Platon

Director of SEO & Web Analytics at onwardSEO
Eugen Platon is a highly experienced SEO expert with 16+ years of experience propelling organizations to the summit of digital popularity. Eugen, who holds a Master's Certification in SEO and is well-known as a digital marketing expert, has a track record of using analytical skills to maximize return on investment through smart SEO operations. His passion is not simply increasing visibility, but also creating meaningful interaction, leads, and conversions via organic search channels. Eugen's knowledge goes far beyond traditional limits, embracing a wide range of businesses where competition is severe and the stakes are great. He has shown remarkable talent in achieving top keyword ranks in the highly competitive industries of gambling, car insurance, and events, demonstrating his ability to traverse the complexities of SEO in markets where every click matters. In addition to his success in these areas, Eugen improved rankings and dominated organic search in competitive niches like "event hire" and "tool hire" industries in the UK market, confirming his status as an SEO expert. His strategic approach and innovative strategies have been successful in these many domains, demonstrating his versatility and adaptability. Eugen's path through the digital marketing landscape has been distinguished by an unwavering pursuit of excellence in some of the most competitive businesses, such as antivirus and internet protection, dating, travel, R&D credits, and stock images. His SEO expertise goes beyond merely obtaining top keyword rankings; it also includes building long-term growth and optimizing visibility in markets where being noticed is key. Eugen's extensive SEO knowledge and experience make him an ideal asset to any project, whether navigating the complexity of the event hiring sector, revolutionizing tool hire business methods, or managing campaigns in online gambling and car insurance. With Eugen in charge of your SEO strategy, expect to see dramatic growth and unprecedented digital success.
Eugen Platon
Check my Online CV page here: Eugen Platon SEO Expert - Online CV.