Skip to main content
πŸ›’ E-commerce SEO Intermediate Medium Effort Google

Fix Shopify Duplicate Content with Product URL Structure

Mathias SchrΓΈder

Mathias SchrΓΈder @MattiSchroder

Verified source on Twitter/X

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.

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
πŸ›’

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. No agency required. Unsubscribe anytime.