Fix Shopify Duplicate Content with Product URL Structure
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 pagesproduct-card.liquid— Product tiles and snippetssearch.liquid— Search resultsproduct-recommendations.liquid— Related product sections
3. Test Your Changes
After updating your theme:
- Visit collection pages and hover over product links
- Verify URLs show
/products/product-nameformat - Check that links work correctly
- 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.