Canonical Tags in Practice: One URL per Page, Even with Messy Links
How canonical tags fold duplicate URLs into one, which normalisation rules to choose, the conflicts that make search engines ignore them and how to check.

Every page on a typical website can be reached through more URLs than anyone intended. The same product appears with and without www, over http and https, with a trailing slash and without, through index.html, with tracking codes from a newsletter and with filters in a different order. To a search engine these are separate URLs that happen to show the same content. A canonical tag names the one URL that should collect links, clicks and ranking signals.
What a canonical does and does not do
A canonical is a link element in the head of the page, or an HTTP Link header for files such as PDFs, that says: the preferred version of this content lives at this address. Search engines treat it as a strong hint. They usually follow it when it is consistent with redirects, internal links and the sitemap, and ignore it when signals disagree.
It is not a redirect. Visitors still see the URL they opened. It is also not noindex: a canonical says merge this into another URL, while noindex says drop this page entirely. Mixing the two on one page sends contradictory instructions.
Choosing your normalisation rules
Before generating tags, decide what a clean URL looks like on your site. The usual decisions are:
- Always https.
- One host: either with www or without.
- One trailing slash policy for folders.
- No index.html or default.aspx at the end.
- No tracking or session parameters, such as utm_ codes, gclid or session IDs.
- Keep parameters that change content, such as page numbers, and sort the rest so the same filters always produce the same URL.
Write these down once and apply them everywhere: in canonical tags, internal links, sitemaps and redirects.
Generating tags
The Canonical Tag Generator and Checker turns those rules into switches. Paste one URL to get its canonical form as both a head tag and an HTTP header. Paste a whole list in bulk mode and every URL is normalised; URLs that collapse into the same canonical are grouped, so you see at a glance how many real pages sit behind your messy list. Download a CSV map of input to canonical, or the tags themselves.
Parameter removal accepts wildcards, so utm_* covers every campaign tag, and a separate keep list protects parameters you need.
Checking existing pages
The checker reads page sources, one or many, each after a line with three equals signs and its URL. For each page it reports a status: self when the page canonicalises to itself, other when it points elsewhere, missing, or conflict. Conflicts are the dangerous case. When a page carries two canonicals with different targets, often because a theme and a plugin both add one, search engines ignore both.
It also flags empty and relative hrefs, canonicals placed in the body, fragments and tracking parameters in the target, http canonicals on https pages, noindex combined with a canonical to another URL, an og:url that disagrees with the canonical, and language versions with hreflang that canonicalise away from themselves. For any page with a known URL, a fix button replaces every canonical in the pasted source with one self-referencing tag built from your rules.
A worked example
A shop pastes two category pages. The running shoes page has a relative canonical, a second canonical with a sort parameter and a noindex: three problems, status conflict. The trail page is fine except that og:url ends with a slash the canonical lacks. In bulk mode with www removed and trailing slashes removed, three messy variants of the running page, one on http with a campaign code, one with a fragment and one on www through index.html, collapse into a single canonical URL.
Common questions
Should every page have a self-referencing canonical? Yes, it is a cheap safeguard against parameter duplicates. Should paginated pages point to page one? No, each page in a series should canonicalise to itself, or the items on later pages can disappear from search. Can you canonicalise across domains? Yes, for syndicated copies, as long as it is deliberate.
Limits
The tool works on text. It does not fetch pages, follow redirects or run scripts, so canonicals added by JavaScript need the rendered HTML from your browser's developer tools. And because a canonical is a hint, the final choice belongs to the search engine; consistent internal links and redirects make it much more likely to follow yours.



