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

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

vermit
Shopify Partner
9 0 1

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?

Reply 1 (1)

ES1
Shopify Partner
253 24 28

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.

If this fixed your issue, Please Like and Accept as a Solution.
Looking for assistance? Hire an experienced Shopify Partner! Visit EcommerceStorez.us today for a quick quote.
Seeking an elegant theme designed to boost conversions? Explore our High-Converting Shopify Themes today!