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.
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.”
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.”
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.
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.
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.
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.