SEO guide

Duplicate content and canonicals: consolidate duplicate URLs into one page

When the same content loads at several URLs, search engines decide for themselves which one to show; crawl time goes to the duplicates and links are split between URLs. In this guide you'll find where duplicates come from, the rules of the canonical tag, how to choose between canonical, 301 and noindex, and what to do when Google picks a different URL.

12 min readUpdated: November 9, 2026

In short

  • Duplicate content is not a reason for a penalty in itself. The real losses are wasted crawling, split signals and the wrong URL showing up in search results.
  • Most duplicates are technical: www and non-www, http and https, trailing slashes, tracking and filter parameters, product variants.
  • Use a 301 if the old URL doesn't need to stay accessible, a canonical if both URLs need to stay accessible, and noindex if the page shouldn't appear in search at all.
  • A canonical is written as a full URL, there's one per page, and it points to a page that returns 200 and is open to indexing. The sitemap, hreflang and internal links use the same URL.
  • A canonical is a suggestion: if it conflicts with other signals, Google may choose a different URL. You can see its choice in the URL Inspection tool in Search Console.

What duplicate content is and isn't

Duplicate content is the same or nearly the same content being published at more than one URL. Duplicates can be on the same site (/kupalar and /kupalar?sirala=fiyat) or on different sites (your article republished on another site).

Contrary to popular belief, there's no "penalty" for it. According to Google's documentation, duplicate content doesn't lead to action against a site unless its purpose is to mislead search results. Google groups the duplicates and shows a single URL from the group, the canonical URL, in search results. The problem is that it makes this choice for you:

  • Crawling is wasted. The time Googlebot spends on your site goes to downloading the same content again from different URLs; new and updated pages are noticed later.
  • Signals are split. If some sites link to the www URL and others to the non-www URL, links are spread across two URLs. When Google consolidates duplicates it largely merges the signals too, but it decides itself which URL they end up on.
  • The wrong URL shows up. A URL with campaign parameters, a print version or an old URL may appear in search results.

What can cause trouble is content copied from other sites or multiplied to mislead search engines. Google's spam policies explicitly list republishing other sites' content without adding value and creating doorway pages that differ only by city name and send visitors to the same place.

Where do duplicate URLs come from?

Most duplicates are URLs nobody wrote on purpose; they come from server and template settings. If all of the URLs below open the same page, the same content is live at five different URLs:

https://www.magaza-ornek.com/kupalar
http://magaza-ornek.com/kupalar
http://www.magaza-ornek.com/kupalar
https://www.magaza-ornek.com/kupalar/
https://www.magaza-ornek.com/kupalar?utm_source=bulten

Domain and URL format

  • www and non-www, http and https: if all four combinations return 200, every page has four copies. Google tends to prefer the HTTPS version of the same content, but the right fix is a server-side 301.
  • Trailing slash: /kupalar and /kupalar/ are separate URLs for Google; only at the root of the domain is there no difference. One should return 200, the other 301.
  • Letter case and file names: the URL path is case-sensitive. If /Kupalar or /kupalar/index.html opens the same content, those are duplicates too.

Parameters

  • Tracking parameters: parameters such as utm_source, gclid and fbclid exist for campaign measurement, but each one creates a new URL.
  • Session IDs: a ?sid= value added to the URL creates a separate copy for every visitor; keep the session in a cookie.
  • Sorting and filters: combinations such as ?sirala=fiyat or ?renk=mavi&beden=m show the same products in a different order. When the order of the parameters changes (?beden=m&renk=mavi), yet another copy appears.
  • Pagination: ?sayfa=2 isn't a duplicate because it shows different products. The problem is when the second page's canonical mistakenly points to the first page.

Duplicates caused by content and templates

  • Print versions: URLs such as ?yazdir=1 are copies of the main page.
  • Product variants and category paths: product URLs that differ only by color, or a product that opens under several category paths (/kupalar/mavi-kupa and /hediyeler/mavi-kupa). On Shopify, products open both under /products/ and under /collections/…/products/; themes usually set the canonical to the /products/ URL.
  • Tag and archive pages: category, tag, author and date archives in WordPress that list the same posts.
  • Republished content: articles published verbatim on partner or reseller sites, and the manufacturer's description used word for word in many shops.
  • Test copies: a full copy of the site left publicly accessible on subdomains such as test.ornek-site.com or on the hosting provider's temporary address.
  • Language and regional versions: nearly identical pages such as en-GB and en-US; these are connected with hreflang (hreflang guide).

How does Google choose the canonical URL?

Google groups URLs that carry the same or very similar content and picks one of them as the canonical; the others are treated as alternates and usually don't appear in search results. The choice is based on many signals, including what you declare. According to Google's documentation:

  • Redirects are a strong signal: the redirect target is a candidate to become canonical.
  • rel="canonical" is a strong signal too.
  • Including a URL in the sitemap is a weak signal.
  • Google also prefers HTTPS URLs over HTTP and looks at the URLs used in hreflang clusters and in internal links.

When these signals point to the same URL, the choice is almost always the URL you want. The more they conflict, for example when the canonical says /kupalar while the sitemap and menu use /kupalar/, the more likely Google is to choose differently. Your own declaration is called the "user-declared canonical" and Google's choice the "Google-selected canonical"; you can see both side by side in the URL Inspection tool in Search Console.

How do you write a canonical tag? The basic rules

The canonical tag goes in the page's <head> section and points to the main URL:

<link rel="canonical" href="https://www.magaza-ornek.com/kupalar/mavi-seramik-kupa">
  • Write the full URL. Google also resolves relative URLs, but a faulty <base> tag or the test environment's domain can make it point to the wrong URL. Write the URL with https:// and your preferred host name.
  • Let every page point to itself. Every page open to indexing should have a canonical pointing to its own URL. It isn't mandatory, but this way parameterized copies (?utm_source=) are consolidated into the main URL automatically.
  • One canonical per page. If the theme and a plugin each output a tag pointing to different URLs, Google may ignore all of them. The tag mustn't be inside <body> either; Google ignores canonicals there.
  • The target must return 200 and be open to indexing. The canonical shouldn't point to a URL that redirects, returns 404, carries noindex or is blocked by robots.txt. Don't build chains either: if A's canonical is B and B's canonical is C, point A directly to C.
  • Make every signal say the same URL. Use the canonical URL in the sitemap, in hreflang tags, in internal links, in the og:url value and in the url field of structured data.
  • Don't change it with JavaScript. Write the canonical in the initial HTML. Google advises against using JavaScript to change the canonical in the initial HTML to a different URL.

Non-HTML files: the Link header

For files without a <head> section, such as PDFs, the canonical is declared with the Link header in the HTTP response. If the same catalog sits at two URLs, add the header on the first line to the duplicate's response; the second block adds the same header in Nginx:

Link: <https://www.magaza-ornek.com/katalog.pdf>; rel="canonical"

location = /indir/katalog-2026.pdf {
    add_header Link '<https://www.magaza-ornek.com/katalog.pdf>; rel="canonical"';
}

Röntgen's Meta tag checker reads the canonical both from the HTML and from the Link header.

Canonical, 301 or noindex?

All three seem to say "keep this URL out of the index", but they do different things. A 301 removes the old URL: both visitors and bots go to the target. A canonical leaves both URLs accessible and suggests which one should be indexed. noindex removes the page from search results entirely and doesn't pass its signals to another URL.

Type of URLMethodNote
www and non-www, http and https, trailing slash301Every variant should go to the preferred URL in a single step.
Moved or merged page301The old URL doesn't need to stay accessible.
URL with tracking parameterscanonicalA self-referencing canonical on the main page is enough; don't use parameters in internal links.
Sorting and filters nobody searches forcanonical or robots.txtrobots.txt if the crawl load is large; don't use both on the same URL.
Searched-for filter ("red dress")its own canonicalMake it a permanent page with its own title and text.
Paginated listing (?sayfa=2)its own canonicalDon't set the first page as the canonical.
Print versioncanonicalPoints to the main page.
Variant that differs only by colorcanonical or a single pageIf variants are searched for separately, each points to itself.
Article republished on another sitenoindex (on that site)Alternative: a cross-domain canonical and a link to the original article.
Site search results, cart, accountnoindexrobots.txt if you don't want it crawled either.
Test and development copypasswordrobots.txt and noindex alone aren't enough.
Thin, useless pageimprove, merge or removeA removed page returns 404 or 410.

robots.txt stops URLs from being crawled but doesn't reliably prevent them from being indexed, and a canonical or noindex on a blocked page isn't seen. To remove a URL from the index, leave it crawlable and add noindex. Details in the robots.txt guide and the redirect guide.

Don't use a canonical and noindex together on the same page. "This page is a copy of that page" and "don't index this page" are two conflicting requests; Google's documentation also says not to use noindex to steer canonical selection within a site.

See a page's canonical tag, Link header and robots directives together.

Meta tag checker

Parameters, filters and product variants

Tracking parameters

The utm_ parameters in your newsletter, ad and social media links reach your site as new URLs. If the main page has a self-referencing canonical, these URLs are consolidated into the main URL. Don't use tracking parameters in internal links, though: they create duplicates and make internal clicks look like new campaign visits in analytics. Search Console's old URL Parameters tool was retired in 2022; you now manage parameters with canonicals, robots.txt and consistent internal links.

Sorting and filters

Sorting parameters don't offer new content; set the canonical to the unsorted category URL. For filters, the decision depends on whether people search for the filter. Turn searched-for combinations such as "red dress" into permanent pages with their own title and text that point to themselves as canonical; canonicalize the rest to the category or block their crawling. We cover crawling and linking of filter URLs in detail in the internal links and site architecture guide.

Product variants

For products that differ only by color or size there are two correct approaches: offer all variants as options on a single product page, or give each variant its own URL and canonicalize them all to the main product. If variants are searched for separately and genuinely carry different content (a different model, different specifications), each can point to itself as canonical; in that case, state the difference in their titles and descriptions.

Republished content and test sites

Articles published on other sites

If a news site, an industry portal or a partner blog republishes your article, Google chooses which copy to show, and it may not always be your page. Google's documentation recommends, as the most effective approach, that the republishing site add noindex to its copy. A cross-domain canonical, meaning the partner's copy has a canonical pointing to your URL, can also be used; but because the two pages have different templates and surroundings, Google doesn't always apply it. In any case, the republished text should include a link to the original article.

If you use the manufacturer's product description word for word, the same text is live in many shops. Set your page apart by adding your own experience, usage tips and frequently asked questions.

Test and development copies

A publicly accessible test site is a full copy of your live site and is sometimes indexed before the real one. Blocking it with robots.txt isn't enough: blocked URLs that get links from elsewhere can still be indexed. The safest way is to protect the test environment with a password; search engines can't open a page that asks for a password either:

server {
    server_name test.ornek-site.com;
    auth_basic           "Test";
    auth_basic_user_file /etc/nginx/.htpasswd;
    add_header X-Robots-Tag "noindex, nofollow" always;
}

The X-Robots-Tag header is an extra safeguard. When you move the test site to production, check that this header and the test environment's noindex setting don't carry over to the live site. The search engine visibility option in WordPress's reading settings is also often forgotten during migrations. If the test site is already indexed, add the password and then temporarily hide the URLs with the removals tool in Search Console.

Near-duplicate and thin pages

Not every duplicate is technical. Pages cloned from the same template with only a few words changed can also be copies of each other in Google's eyes:

  • Service pages that differ only by city name: "Boiler repair in Istanbul", "Boiler repair in Ankara". If you really have a branch, a team or local knowledge in each city, put it on the page: address, opening hours, examples of work in that area. Otherwise, a single service page with a list of the areas you serve is the better choice.
  • Tag pages: remove tag pages that list a few posts and have no text of their own, or keep them out of the index with noindex.
  • Articles covering the same topic: merge them into one comprehensive article and redirect the old ones to it with a 301; scattered articles compete with each other for the same search.

Röntgen's Site crawl helps you find these pages with three findings. "Duplicate title tags" (error) and "Duplicate meta descriptions" (warning) group pages that share the same title or description; pages carrying noindex and pages whose canonical points to another URL are left out of this comparison. "Pages with thin content" (warning) lists pages with fewer than 300 words of text. This threshold isn't a Google rule: it's natural for a contact or cart page to be short. But if a category or service page is under 300 words and differs from similar pages only in its title, consider merging.

If Google chose a different canonical

The Page indexing report in Search Console shows duplicates under separate statuses:

  • Alternate page with proper canonical tag: the page points to another URL as canonical and Google has accepted it. If your deliberate duplicates are here, there's no problem.
  • Duplicate without user-selected canonical: the page is a duplicate but no canonical was declared; Google made the choice. Add a canonical that points to itself on the main page and to the main page on the duplicates.
  • Duplicate, Google chose different canonical than user: you declared a canonical, but Google chose another URL.

In the last case, open the URL in the URL Inspection tool, look at the Google-selected canonical, and then work through these steps:

  1. Is the content really the same? If the two pages are different and you want both indexed, make the difference clearer; Google groups very similar pages together.
  2. Is the canonical's target healthy? The target should return 200, shouldn't redirect and shouldn't carry noindex or a robots.txt block.
  3. Do the signals conflict? The sitemap, internal links, hreflang and redirects should all point to the canonical URL. If the menu says /kupalar/ while the canonical says /kupalar, Google may lean toward the menu's URL.
  4. Is the canonical added with JavaScript? If the initial HTML has one canonical and the rendered page another, there's no telling which one Google will use.

After fixing things, you can request reindexing from the URL Inspection tool; the choice is updated as Google recrawls the pages. We cover the other statuses in the indexing report in the indexing problems guide.

See duplicate titles, faulty canonicals and duplicates in your sitemap for up to 100 pages in a single report.

Site crawl

Step-by-step duplicate content audit

  1. Test the domain versions. Enter your domain in the Redirect checker. The tool tries the http://, https://, www and non-www homepages separately. You should see the result "All versions lead to a single URL"; warnings such as "Both the www and non-www versions load" or "The http:// version doesn't redirect to HTTPS" show that the duplicates start at server level.
  2. Test the trailing slash. Open a category URL with and without the slash in the same tool; one should return 200 directly and the other a 301 in a single step.
  3. Check your templates' canonicals. Open the homepage, a category, a product and an article with the Meta tag checker. The expected result is "Canonical points to the page's own URL". The findings "No canonical tag", "2 conflicting canonical URLs", "Canonical URL is relative", "Canonical URL differs slightly from the page URL" (a trailing slash or letter case difference) and "Canonical and noindex used together" show what to fix in the template.
  4. Test the duplicate URLs. Run the same tool on a category URL with ?utm_source=deneme or ?sirala=fiyat added to the end. The canonical should point to the URL without parameters; the tool reports this as "Canonical points to a different page", which is the expected result on a duplicate URL.
  5. Crawl the site. In the Site crawl report, check the rows "Duplicate title tags", "Duplicate meta descriptions", "Pages with a canonical pointing to a faulty URL" (a canonical to a redirecting or failing URL), "Pages with a canonical pointing to another URL" and "URLs that shouldn't be in the sitemap". The crawl strips tracking parameters such as utm_, gclid and fbclid from URLs; test those duplicates one by one as in step 4.
  6. Monitor Search Console. Check the duplicate statuses in the Page indexing report and the Google-selected canonical of your important pages.

Checklist

  • The http://, https://, www and non-www versions all go to one URL in a single step.
  • A single format was chosen for the trailing slash; the other returns a 301.
  • Every page open to indexing has one full, self-referencing canonical.
  • Canonicals point to URLs that return 200, don't carry noindex and don't redirect.
  • The sitemap, hreflang, internal links and og:url use the canonical URLs.
  • Internal links contain no tracking parameters; a decision has been made for sorting and filter URLs.
  • Paginated pages point to themselves as canonical.
  • Test sites are password-protected.
  • Near-duplicate and thin pages have been merged or improved.

Frequently asked questions

Does Google penalize duplicate content?

Not unless its purpose is to mislead search results. Google groups the duplicates and shows one of them. The real loss is crawling spent on duplicates, links split between URLs and the wrong URL showing up in search results. Content copied from other sites without adding value, however, may count as spam.

What's the difference between a canonical tag and a 301 redirect?

A 301 removes the old URL; visitors and search engines go straight to the new one. A canonical leaves both URLs accessible and suggests to search engines which one to index. Use a 301 if the old URL doesn't need to stay accessible, and a canonical if both URLs need to keep working (filters, tracking parameters).

Should every page have a self-referencing canonical?

It's recommended on every page open to indexing. It isn't mandatory, but this way duplicates are consolidated into the main URL when the page is reached through a parameterized or differently formatted URL. Write the tag with the full URL, once per page, in the page's head section.

Why doesn't Google use the canonical I chose?

A canonical is a suggestion; Google weighs it together with other signals such as redirects, the sitemap, internal links and HTTPS. The most common reasons are a canonical pointing to a URL that redirects or carries noindex, a sitemap and menu that use a different URL, and pages that aren't actually the same.

Should the canonical of paginated category pages be the first page?

No. Google recommends that each page show its own URL as the canonical; the second and later pages list different products, so they aren't copies of the first page. Canonicalizing every page to the first can make the products on those pages harder to discover.

My article will be published on another site. What should I do?

Ask the republishing site to add noindex to its copy; Google recommends this as the most effective approach. If that isn't possible, ask for the copy's canonical to point to your URL and for the text to link to the original article.

Related guides and tools