Canonical URLs · 5 min read

Duplicate content and canonical URLs

Duplicate content is normal and not a penalty, but it makes Google choose which URL to show. Where duplicates come from and how to point every signal at one address.

Not a penalty, still a problem

Google’s documentation says some duplicate content on a site is normal and not a violation of its spam policies. Google picks one URL from each set of duplicates to show. The risk is that it picks one you did not want, and that links and signals are split between copies.

Where duplicates come from

  • Protocol and host variants: http and https, www and non-www.
  • Parameters: tracking tags, sort orders, filters and session IDs.
  • Trailing slashes and capital letters in paths.
  • Region or device variants, print versions, and test sites left open to crawlers.
  • Templates that give many pages the same title and description.

Point every signal at one URL

  • Redirect variants that should not exist, such as http and the other host.
  • Add an absolute canonical on pages that must stay reachable under several URLs.
  • Link internally to the canonical URL only, and list only canonical URLs in the sitemap.
  • Give each page its own title and description so near-duplicates are easy to tell apart.
A filtered list names the unfiltered pagehtml
<!-- https://example.com/mugs?color=blue -->
<link rel="canonical" href="https://example.com/mugs">