Skip to main content
PocketSEOPocketSEO
E-commerce SEO Intermediate Medium Effort Google

Fix Shopify Duplicate Content with Product URL Structure

S

Selena Ortiz

Local & Off-Page Editor, PocketSEO

Curated from a practitioner post on Twitter/X

Reviewed Jul 2026

Key Takeaway

Swap Shopify's collection-based product links for direct /products/ URLs so ranking signals consolidate into one canonical page per product instead of scattering across duplicates.

The Shopify Duplicate Content Problem

Shopify creates multiple URLs for the same product by default. When a product appears in multiple collections, each collection generates its own URL path:

  • /collections/shirts/products/blue-t-shirt
  • /collections/sale/products/blue-t-shirt
  • /collections/new-arrivals/products/blue-t-shirt

All three URLs show identical content, creating duplicate content issues that confuse search engines and dilute your ranking power.

The Simple Fix

Shopify offers a clean product URL structure that bypasses collections entirely. Instead of collection-based URLs, use the direct product path:

  • Bad: /collections/shirts/products/blue-t-shirt
  • Good: /products/blue-t-shirt

This creates one canonical URL per product, eliminating duplicates.

Implementation Steps

1. Update Your Theme Files

Find these Liquid template tags in your theme files and replace them:

Replace this:

{{ product.url | within: collection }}

With this:

{{ product.url }}

2. Common Files to Check

  • collection.liquid — Product listings on collection pages
  • product-card.liquid — Product tiles and snippets
  • search.liquid — Search results
  • product-recommendations.liquid — Related product sections

3. Test Your Changes

After updating your theme:

  1. Visit collection pages and hover over product links
  2. Verify URLs show /products/product-name format
  3. Check that links work correctly
  4. Use Google Search Console to monitor crawl errors

Why This Matters

Duplicate content spreads link equity across multiple URLs instead of concentrating it on one page. Google might choose the wrong URL to rank, or worse, penalize pages for duplication.

With clean product URLs, you consolidate all ranking signals into one authoritative page per product. This typically improves product page rankings and makes your site architecture cleaner for both users and crawlers.

Want the full playbook? Read our guide on Ecommerce SEO Strategy: How One Shopify Store Got 3,000% More Traffic.

X work chat send
Go Deeper

Read E-commerce SEO Guides

In-depth how-to articles →

Take Action

Follow the E-commerce SEO Checklist

Step-by-step implementation →

Related Tips

More E-commerce SEO Tips

View all arrow_forward
category

Browse all E-commerce SEO tips

Curated tips for e-commerce seo →

Get the weekly SEO digest

Get 3 actionable SEO tips every week — free.

Join solo founders leveling up their SEO. Unsubscribe anytime.