Why the same content ends up at several addresses

To a person it is one page. To Google, the same product can have four different addresses: with and without www, with a sorting parameter, with a campaign tag, or listed in several categories. For example /kategoria/topanky/bezecke-tenisky, /bezecke-tenisky and /bezecke-tenisky?farba=modra. The content is almost identical, but the addresses differ.

The canonical tag (rel="canonical" in the code) tells Google: “This is the main version, the others are copies of it.” Google then concentrates rankings and links on one address and shows that one in the results.

Why it matters

Without a canonical tag, Google picks the main version itself, and it may not be the one you want. The page's strength is split across several addresses, and none of them may be strong enough for a good position. On an online shop with thousands of products and filters, Google also wastes time crawling copies (more on this under crawl budget).

Canonical URL versus redirect

  • Use a 301 redirect when the old address should no longer exist. It automatically sends the visitor elsewhere.
  • Use a canonical tag when both addresses should stay accessible, such as a filtered page for users, but only the main one should appear in Google.

A real-world example

A bookshop from Košice sold books that were listed in several categories at once, and each category generated its own product address. Google Search Console kept reporting “Duplicate, Google chose different canonical than user”. I set up a single product address without the category and pointed the canonical tag to it. The warnings gradually disappeared.

Common mistakes

  • Every page on the site has a canonical tag pointing to the home page, and Google then ignores the rest of the site.
  • The canonical tag points to an address that returns an error or a redirect.
  • Paginated category pages (page 2, 3…) have a canonical to the first page, so products on later pages get overlooked.

WordPress with an SEO plugin (Yoast, Rank Math) sets canonical tags automatically. Check them, though, if you have custom changes or filters. This is related to duplicate content. An SEO audit reliably uncovers canonical URL errors.