Scam Alert We have received reports of fraudulent job offers and investment guarantee letters misusing MediaPlus Digital's name. These are NOT issued or authorised by us. Please verify any suspicious communication directly with us at +65 6816 3168

Home - SEO - How to Fix Duplicate Product URLs in Shopify: A Diagnosis and Fix Guide

How to Fix Duplicate Product URLs in Shopify: A Diagnosis and Fix Guide

November 24, 2026

•

SEO

Open Search Console for almost any Shopify store and you’ll see a long list of URLs Google crawled but didn’t index. Many are the same product reached through a different path: /collections/bags/products/tote, /products/tote?variant=4412..., /collections/all/products/tote. Shopify builds these URLs on purpose, and most of the time its canonical tags stop them from hurting you. Problems start when a theme, an app or your own navigation keeps feeding Google the wrong version.

This guide shows which duplicates matter and how to fix them. If you want the general theory of duplicate content and cannibalisation (and why there’s no “penalty”), read our duplicate content and keyword cannibalisation guide first. This article stays on Shopify.

The short answer

  • Shopify already sets a canonical tag on product pages pointing to the clean /products/handle URL, so collection-path and ?variant= URLs usually show up in Search Console as “Alternate page with proper canonical tag”. That status needs no action.
  • The real problem is internal links. If your theme links product cards to /collections/x/products/y, Google sees thousands of internal links pointing away from your canonical and may pick the collection URL instead. Fix the theme so cards link to product.url.
  • Shopify’s default robots.txt blocks sorted collections (sort_by), multi-tag URLs and URLs with two or more filters. Single tag pages, single filter URLs, ?page= and vendor/type pages are still crawlable.
  • Tag pages that duplicate collections can be set to noindex, follow with a short conditional in theme.liquid.
  • Genuinely duplicated products (same item listed twice) need merging and a 301 redirect, which you create in Content > Menus > URL redirects.
  • Shopify Markets subfolders are handled by automatic hreflang tags. Leave them on unless you have a replacement.

Where Shopify duplicates come from

Shopify generates several URLs for the same content as part of how the platform works. Here are the ones you’ll meet in a crawl, with an example for a Singapore store selling bags.

Source Example URL Same content as Crawlable by default?
Collection-aware product path /collections/tote-bags/products/canvas-tote /products/canvas-tote Yes
Variant parameter /products/canvas-tote?variant=44120... /products/canvas-tote Yes
/collections/all /collections/all and /collections/all/products/canvas-tote A list of every product Yes
Tag filter (one tag) /collections/tote-bags/canvas A subset of the collection Yes
Tag filter (two or more tags) /collections/tote-bags/canvas+black A smaller subset No (blocked)
Search & Discovery filter (one) /collections/tote-bags?filter.v.option.color=Black A subset of the collection Yes
Two or more filters ?filter.v.option.color=Black&filter.v.price.lte=50 A smaller subset No (blocked)
Sort order /collections/tote-bags?sort_by=price-ascending Same products, new order No (blocked)
Pagination /collections/tote-bags?page=2 Next page of the collection Yes
Vendor pages /collections/vendors?q=Brand%20X Products from one vendor Yes
Type pages /collections/types?q=Tote Products of one type Yes
Duplicate products /products/canvas-tote and /products/canvas-tote-1 Each other Yes
Markets subfolders /en-my/products/canvas-tote /products/canvas-tote (different market) Yes
myshopify domain and theme previews yourstore.myshopify.com/..., ?preview_theme_id= Your live store Previews blocked; myshopify should redirect

The last column reflects Shopify’s default robots.txt as served by live stores in November 2026. Shopify changes these rules, so check yourstore.com/robots.txt.

  • Filters can create variant URLs on product cards. Shopify’s storefront filtering docs say variant-level filters (colour, size) update a product’s url to deep-link to the first matching variant. So a filtered collection page links to ?variant= URLs, which multiplies the duplicates Google discovers.
  • Single filters and single tags are open. The default rule Disallow: /collections/*filter*&*filter* only matches URLs with two or more filter parameters. /collections/tote-bags?filter.p.vendor=BrandX stays crawlable.
  • The within filter is the source of collection paths. Shopify’s Liquid reference for within says it “generates a product URL within the context of the provided collection” and warns that the two versions “have the same content on separate URLs”.

What Shopify already handles for you

Know what the platform does on its own, so you don’t fix things that aren’t broken.

Area What Shopify does What it means for you
Product canonical Themes output <link rel="canonical" href="{{ canonical_url }}">. On product pages this points to /products/handle, without the collection path or ?variant= Collection and variant URLs are flagged as alternates. Check your theme still outputs the tag
Sorted and filtered collections In our checks, canonical_url on ?sort_by= and ?filter. URLs pointed to the plain collection URL Google gets a clear hint. Verify on your own store with View Source
Paginated collections ?page=2 keeps a self-referencing canonical Correct. Don’t canonicalise page 2 to page 1
Default robots.txt Blocks admin, cart, checkout, accounts, sort_by, multi-tag (+), multi-filter, preview_theme_id and a few system paths Covers the worst crawl traps. Leaves single tags, single filters and vendor/type pages open

Shopify’s own guidance on editing robots.txt says the default file “works for most stores”, calls editing it “an unsupported customization”, and warns that “incorrect use of the feature can result in loss of all traffic.” Shopify Support won’t help with edits to robots.txt.liquid. Take that seriously.

How to diagnose duplicate URLs on your store

Run these four checks before touching code.

1. Read the Page indexing report in Search Console

Go to Indexing > Pages in Google Search Console and open each “Why pages aren’t indexed” reason. The ones that matter here, using Google’s exact names from the Page indexing report help page:

Reason in GSC What it usually means on Shopify Action
Alternate page with proper canonical tag Collection-path or ?variant= URLs correctly pointing to /products/ None. Google says “there is nothing you need to do”
Duplicate, Google chose different canonical than user Google ignored your canonical, often because internal links point elsewhere Investigate. This is the one to fix
Duplicate without user-selected canonical A page with no canonical tag, often from a custom theme or app page Add a canonical or consolidate
URL blocked by robots.txt Sort, multi-filter or multi-tag URLs Normal on Shopify
Indexed, though blocked by robots.txt Google indexed a blocked URL because something links to it Remove the links, or unblock and noindex instead
URL marked ‘noindex’ Search pages, or tag pages you noindexed Normal if intentional

A big number under “Alternate page with proper canonical tag” is not a problem. A growing number under “Duplicate, Google chose different canonical than user” is.

2. Inspect individual URLs

Paste three product URLs into URL Inspection and compare “User-declared canonical” with “Google-selected canonical”. If Google picked /collections/x/products/y over your /products/y, you have a link signal problem, covered in fix 1 below.

3. Run site: searches

Search Google for:

  • site:yourstore.com inurl:/collections/ inurl:/products/ (collection-path products in the index)
  • site:yourstore.com inurl:variant=
  • site:yourstore.com inurl:/collections/vendors
  • site:yourstore.com/collections/all
  • site:yourstore.myshopify.com (should return nothing)

4. Crawl the store

Crawl with Screaming Frog SEO Spider (or Sitebulb) set to respect robots.txt, then check:

  • Canonicals tab > Canonicalised: every collection-path and variant URL should canonicalise to /products/.
  • Inlinks for one product: in the lower Inlinks tab, see which URL versions your own pages link to. If most links go to /collections/x/products/y, that’s your cause.
  • Content > Exact Duplicates and Near Duplicates: shows duplicate products and tag pages that mirror collections.

The diagnosis table: symptom, cause, fix

Symptom Likely cause Fix
Google indexes /collections/x/products/y instead of /products/y Theme product cards use product.url \| within: collection Fix 1: change cards to product.url
Thousands of ?variant= URLs crawled Filtered collections or swatch links pointing at variant URLs Usually fine thanks to canonicals. Keep variant URLs out of menus and sitemaps
Tag pages ranking instead of the collection Single-tag URLs crawlable and linked from sidebar filters Fix 3: noindex tag pages, or move to Search & Discovery filters
/collections/vendors?q= pages in the index Theme links vendor names on product pages Remove or nofollow the links, then consider a robots rule (Fix 2)
Two products with nearly identical content Product duplicated for a variant or relaunched with a new handle Fix 5: merge, delete, then 301 redirect
/en-my/ pages competing with root pages Automatic hreflang switched off, or an app adding conflicting tags Fix 6: turn automatic hreflang back on, remove the app’s tags
yourstore.myshopify.com pages indexed Primary domain not set to redirect, or old links to the myshopify URL Set primary domain in Settings > Domains and confirm the 301

The fixes, with code

Duplicate your live theme first (Online Store > Themes > … > Duplicate) and edit the copy.

This is the fix with the biggest effect. Google’s guide to consolidating duplicate URLs tells site owners to “link to the canonical URL rather than a duplicate URL”, and canonical tags are a strong hint, not a command. When every card on every collection page links to a collection path, your internal links outvote the canonical.

First, check whether you need it. Shopify’s Dawn theme (v16.2.0, released 16 November 2026) already links cards with {{ card_product.url }} in snippets/card-product.liquid, with no within filter. Many Online Store 2.0 themes from the Theme Store do the same. Older vintage themes and some third-party themes don’t.

In the theme code editor (Online Store > Themes > … > Edit code), search all files for within. Typical places: snippets/product-card.liquid, snippets/product-grid-item.liquid, sections/main-collection-product-grid.liquid, related-product and recently-viewed snippets.

Before:

<a href="{{ product.url | within: collection }}" class="product-card__link">
  {{ product.title }}
</a>

After:

<a href="{{ product.url }}" class="product-card__link">
  {{ product.title }}
</a>

If the theme assigns the URL to a variable (assign product_link = product.url | within: collection), delete the | within: collection part there instead.

What you lose: collection-aware breadcrumbs and “next/previous in this collection” links depend on within. Switch the breadcrumb to a fixed path (for example using product.collections.first) or accept a simpler one.

What you don’t need to do: don’t add redirects from /collections/x/products/y to /products/y. Shopify’s URL redirect rules only allow redirects from broken URLs, and these URLs still load. The canonical tag plus clean internal links is the fix.

Fix 2: Customise robots.txt.liquid (with caution)

Only do this if the crawl shows Googlebot wasting effort on a URL pattern with no search value that isn’t already blocked. Our crawl budget guide explains when that matters. For a store with a few hundred products it rarely does.

Also remember Google’s own line: “Don’t use the robots.txt file for canonicalization purposes.” A blocked URL can’t pass its canonical signal, and it can still be indexed if linked.

To customise, go to Edit code > Templates > Add a new template, choose robots, and Shopify creates robots.txt.liquid with the default loop. Add rules inside the * group so you keep Shopify’s defaults, as shown in the Shopify developer docs:

{% for group in robots.default_groups %}
  {{- group.user_agent }}

  {%- for rule in group.rules -%}
    {{ rule }}
  {%- endfor -%}

  {%- if group.user_agent.value == '*' -%}
    {{ 'Disallow: /collections/vendors*' }}
    {{ 'Disallow: /collections/types*' }}
  {%- endif -%}

  {%- if group.sitemap != blank -%}
    {{ group.sitemap }}
  {%- endif -%}
{% endfor %}

Rules we’d consider, and ones we’d avoid:

Pattern Block it? Reason
/collections/vendors*, /collections/types* Often yes Auto-generated, thin, rarely the page you want ranking
/collections/*?*filter. (single filters) Rarely Blocks every filter URL. Only if filters create huge crawl waste and none deserve to rank
/*?*variant=* No Blocks Google from seeing the canonical on variant URLs
/collections/*?page=* No Google needs paginated pages to find products deep in a collection
/collections/all* Depends Fine if no menu links to it and every product sits in a real collection
Single tag URLs Prefer noindex Blocking stops Google seeing the noindex. Use Fix 3

After publishing, compare /robots.txt with the copy you saved and check the robots.txt report in Search Console (Settings > robots.txt).

Fix 3: Noindex tag pages that duplicate collections

If your sidebar uses tag links (/collections/bags/canvas), each tag page is a thin version of the collection. Add this inside <head> in layout/theme.liquid, near the canonical tag:

{%- if template.name == 'collection' and current_tags -%}
  <meta name="robots" content="noindex, follow">
{%- endif -%}

current_tags only has a value when a tag filter is applied, so the main collection page stays indexable. Two cautions:

  • Don’t also block tag URLs in robots.txt. Google has to crawl the page to see the noindex.
  • If a tag page has real search demand, build it as a proper collection (for example /collections/canvas-tote-bags) with its own title and description.

Longer term, move from tag filtering to Search & Discovery filters, which Shopify calls “the recommended method for filtering products in a theme”.

Fix 4: Decide what to do with variants

Most variants should stay on one product page with the canonical pointing to /products/handle, which is Shopify’s default. Some deserve their own page.

Situation Keep as variants (one URL) Split into separate products (own URLs)
Sizes S to XL of one shirt Yes No
Pack sizes (250g, 500g, 1kg coffee) Yes No
Colours people search for by name (“black leather tote”, “sage green yoga mat”) Possible Yes, if each colour has real search demand and its own photos
Models with different specs (iPhone 16 vs 17 case) No Yes, they answer different searches
Material versions at very different prices Depends Often yes

If you split colours into separate products, each needs its own unique title, description and images, or you’ve just created duplicate products. On Shopify Plus, the Combined Listings app lets separate products display together as one listing with shared options, so shoppers still pick colour from swatches. On other plans, third-party “linked products” apps do something similar; check they don’t canonicalise every colour back to one parent.

Product schema for variants (the ProductGroup and hasVariant markup) is covered in our Shopify schema and structured data guide.

Fix 5: Merge duplicate products and redirect

Duplicate products come from copying a product to make a new colour, relaunching under a new handle, or a CSV import run twice. Each has its own /products/ URL and canonical, so Shopify’s canonical logic can’t help.

  1. Find them. Export products (Products > Export) and sort by title, or use Screaming Frog’s Near Duplicates report. Look for handles ending in -1, -2 or -copy.
  2. Pick the winner. In Search Console’s Performance report, filter by page and keep the URL with more clicks, impressions and backlinks.
  3. Merge content. Move reviews, images and any better description into the winner. Add the loser’s variants to the winner if they belong there.
  4. Archive or delete the loser. The URL must return 404 before a redirect works, because Shopify only redirects broken URLs.
  5. Create the redirect in Content > Menus > View URL redirects > Create URL redirect: from /products/canvas-tote-1 to /products/canvas-tote. For many at once, use Import with a CSV.
  6. If you use Markets subfolders, add redirects for each subfolder too (for example /en-my/products/canvas-tote-1). Shopify’s help page notes market subfolders need individual redirects.
  7. Update internal links in menus, blog posts and collection descriptions.

When you change a product’s URL handle under Search engine listing, keep the “Create a URL redirect” box ticked. Standard plans allow up to 100,000 redirects, so there’s no reason to skip them.

Fix 6: Markets subfolders and hreflang

Many Singapore stores add Malaysia or Australia markets with subfolders such as /en-my/. The English content is identical, but that’s fine when hreflang is set up. Shopify generates hreflang tags automatically for markets with their own domain, subdomain or subfolder, and each version keeps a self-referencing canonical.

Check three things:

  • Automatic hreflang is on: Online Store > Preferences > Social sharing image and SEO. Shopify warns that turning it off can hurt SEO unless you have a replacement.
  • No app adds a second set. View source on a product page and search for hreflang. If you see two sets, remove the app’s.
  • Each market canonicalises to itself. /en-my/products/canvas-tote should canonical to itself, not to the Singapore URL. If a theme hardcodes the canonical to the root domain, Malaysia pages drop out.

If you’re planning which markets to add, our cross-border ecommerce guide covers the business side and our hreflang tags guide covers the tag syntax.

Fix 7: myshopify domain and theme previews

In Settings > Domains, make your custom domain the primary domain, then load yourstore.myshopify.com/products/any-product in a private window. It should 301 to your domain. Theme preview URLs (preview_theme_id) are already blocked in the default robots.txt.

A note on SEO apps

Some SEO apps promise to fix duplicate content in one click. Many inject their own canonical, robots or hreflang tags on top of the theme’s, and some leave code in theme.liquid after you uninstall. After installing any SEO app, View Source and search for canonical and hreflang: there should be one canonical and one set of hreflang tags per page. The fixes above take a few lines of Liquid and don’t need an app.

Step-by-step fix sequence

Work in this order. Each step changes what the next one finds.

  1. Baseline. Export the Page indexing report and a crawl, and save your current /robots.txt.
  2. On a theme copy: apply Fix 1 (product cards, related and recently-viewed snippets) and Fix 3 (tag noindex).
  3. Preview and test: product links go to /products/, one canonical per page. Then publish.
  4. Check Markets and domains (Fixes 6 and 7).
  5. Merge and redirect duplicate products (Fix 5).
  6. Split variants only where the decision table says so (Fix 4).
  7. Robots rules last, if at all (Fix 2), for patterns still wasting crawl.
  8. Recrawl, then click Validate fix on the duplicate reason in Search Console.
  9. Review at weeks 4 and 8. Google takes weeks to recrawl and recount.

New apps and theme updates can bring the problem back, which is why it’s on our Shopify website maintenance checklist.

Before and after checks

Check How Before (typical problem store) After (target)
Product card link Hover a card on a collection page /collections/bags/products/canvas-tote /products/canvas-tote
Canonical tags per page View Source, search “canonical” 0 or 2 Exactly 1
Google-selected canonical URL Inspection on 3 products Collection path /products/ URL
“Duplicate, Google chose different canonical than user” GSC Page indexing Rising Falling over 4 to 8 weeks
Inlinks to collection-path URLs Screaming Frog Inlinks Hundreds Close to 0
Duplicate products Near Duplicates report Pairs present Merged and redirected (301)
myshopify domain Load in private window 200 301 to primary domain

Don’t expect “Alternate page with proper canonical tag” to drop to zero. That status means things are working.

Frequently asked questions

Does Shopify duplicate content hurt my rankings?

Not on its own. Google picks one URL to show. The harm comes when it picks the wrong URL, or when crawling thousands of variations slows discovery of new products.

Should I remove the /collections/ part from Shopify product URLs?

You can’t change Shopify’s URL structure, and you don’t need to. Change which version your theme links to: product cards should use product.url.

Do Shopify variant URLs need their own canonical tag?

No. Shopify points the canonical of ?variant= URLs to the main product URL, which suits most variants. Give a variant its own URL only when it matches separate searches, and then make it a separate product with unique content.

Should I block ?variant= or ?page= in robots.txt?

No. Blocking variant URLs stops Google seeing their canonical tag. Blocking pagination hides products deep in your collections. Shopify’s defaults already block sort and multi-filter URLs.

Why does Search Console show “Duplicate, Google chose different canonical than user”?

Google preferred another URL to the one your tag declares. On Shopify the usual reason is internal links pointing at collection-path URLs. Check URL Inspection, then fix the links.

Need help cleaning up your Shopify store?

Duplicate URLs are one part of technical Shopify SEO, along with collection structure, schema and site speed (our Shopify SEO guide covers the rest, and our ecommerce SEO audit checklist puts them in one list; for the basics, see our technical SEO explainer). If you’d rather have someone audit the theme, fix the Liquid and track the results in Search Console, our Shopify SEO services team does this work, and our ecommerce SEO services cover stores on other platforms too. Planning a theme change or platform move? Read our SEO migration checklist first, then talk to us.

You Might Also Like

November 24, 2026

How to Measure SEO ROI: A Step-by-Step Method for Singapore Businesses

Most SEO reports show rankings and traffic going up and stop there. The finance director then asks the obvious question: what did we get for the money? If the answer is “more visitors”, the SEO budget is the first thing cut when times get tight. This guide gives you a method to answer that question […]

Read More

November 24, 2026

Magento SEO Technical Checklist (Adobe Commerce and Magento Open Source)

Magento gives you more control over SEO than most ecommerce platforms. It also gives you more ways to get it wrong. A default install can publish the same product at three URLs, let layered navigation create thousands of filter pages, and send every paginated category page to page 1 as its canonical. None of it […]

Read More

November 24, 2026

Technical SEO Audit Checklist: What to Check, in What Order

Many technical SEO audits end as a 60-page PDF of crawler warnings that nobody acts on, while the one setting blocking half the site from Google sits on page 47. This guide is the order we work in. Each check has a tool and a pass or fail line, so you can run it yourself […]

Read More

Is Your Brand Invisible to AI? Find Out Now.

Grab your free AI Visibility Audit to see if AI engines are recommending your services. 100% free, zero obligations.