How do I create thousands of product URL redirects in Shopify?

Topic summary

A user is migrating thousands of products from a legacy platform to Shopify and needs to redirect old URLs (structured as /product-details/tools/digital-caliper/234512) to Shopify’s format (/collections/tools/products/digital-caliper).

Solutions provided:

  • App-based approach: Use Shopify apps like Easy Redirects, 301 Redirects, or SEO Manager that support wildcard or RegEx patterns for bulk redirects

    • Example RegEx: From: /product-details/(.*)/(.*)/(.*)To: /collections/$1/products/$2
  • Manual CSV import: Create a two-column CSV file (old URL, new URL) and import via Shopify Admin > Online Store > Navigation > View URL Redirects > Import

Both methods avoid manually creating individual redirects for thousands of products. The RegEx approach automates pattern matching, while CSV import requires listing each redirect explicitly.

Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

My old website was on a different niche platform, but I have now built a new website on Shopify.

Since the old URL structure is different than Shopify’s, how do create wild card redirects for all products?

The website has 1000’s of products that used to be structured like this:
/product-details/tools/digital-caliper/234512

And I need to change it to:
/collections/tools/products/digital-caliper

Do I have to create an excel doc with all the 1000’s of products with old and new urls and import them or is there another option?

Hi @vermit

As an easy way out, you can do this via an app,

You can use a Shopify apps like:

  • Easy Redirects
  • 301 Redirects - URL Redirect Manager
  • SEO Manager

These apps allow you to create bulk redirects using wildcards or RegEx like this:

Example RegEx Pattern:
From: /product-details/(.)/(.)/(.*)
To: /collections/$1/products/$2

This would convert /product-details/tools/digital-caliper/234512 → /collections/tools/products/digital-caliper

If you want to avoid using an app, you can create a bulk redirect file like this:

  1. Create a CSV file with two columns:

    • Column A: Old URL (/product-details/tools/digital-caliper/234512)
    • Column B: New URL (/collections/tools/products/digital-caliper)
  2. Go to:
    Shopify Admin > Online Store > Navigation > View URL Redirects > Import

  3. Upload the CSV file and Shopify will handle the redirects.

Hope this helps.