Guide · Shopify migration

Shopify Redirects: How to Create, Bulk Import and Fix Them

By Carmelo Cutrone · Updated

The short version

  • Every Shopify URL redirect is a 301. It tells Google the move is permanent and passes on the old page's signals.
  • A redirect only fires if nothing lives at the old path. If a product, collection or page still exists there, Shopify shows it and ignores the redirect.
  • One redirect, one row. Shopify has no native wildcard or pattern redirects: every old URL needs its own line.
  • For a migration, import them in bulk. A CSV with two columns, Redirect from and Redirect to, uploaded from the URL redirects page.
  • Test after the import. Crawl the list of old URLs and check that each one returns a single 301 to a page that returns 200.

The free website migration plan template converts WooCommerce, Magento and PrestaShop URLs into Shopify paths and builds the import file for you, with automatic checks for duplicates and chains.

Contents

Contents

  1. How Shopify redirects work
  2. How to create a single redirect
  3. How to bulk import redirects with a CSV
  4. From WooCommerce, Magento or PrestaShop: the usual patterns
  5. Why your Shopify redirects are not working
  6. How to test the redirects after launch
  7. FAQ
01

How Shopify redirects work

A URL redirect in Shopify sends visitors and search engines from an old path on your store to a new address. The source is always a path on your own domain, such as /old-product. The target can be another path on your store or a full URL.

Three rules explain almost every redirect that does not behave as expected:

  1. Shopify redirects are always 301. There is no 302 option in the standard redirects. For a migration that is exactly what you want.

  2. Existing pages win. Shopify only uses a redirect when the old path would otherwise return a 404. If you redirect /products/blue-sofa while that product is still live, nothing happens.

  3. Paths are fixed. Products live under /products/, collections under /collections/, pages under /pages/ and blog posts under /blogs/<blog-name>/. You cannot recreate an old URL structure, so a store that moves to Shopify almost always needs redirects for every page that matters.

02

How to create a single redirect

  1. In your Shopify admin, open the URL redirects page. In current versions of the admin you reach it from Content › Menus › View URL redirects; in older ones from Online Store › Navigation.

  2. Click Create URL redirect.

  3. In Redirect from, enter the old path, for example /product/blue-sofa/.

  4. In Redirect to, enter the new path, for example /products/blue-sofa.

  5. Save, then open the old URL in a private window to check it.

When you change the handle of a product, collection or page, Shopify offers a Create a URL redirect checkbox in the search engine listing section. Leave it ticked: it creates the redirect from the old handle to the new one for you.

03

How to bulk import redirects with a CSV

For a migration you will have hundreds or thousands of redirects. Creating them one by one is slow and error-prone. Import them instead.

  1. Prepare a CSV with two columns: Redirect from and Redirect to. One row per old URL, one target each.

  2. Write paths, not full URLs, in Redirect from. /product/blue-sofa/, not https://oldstore.com/product/blue-sofa/.

  3. Check the file before importing. No duplicate sources, no empty targets, no row whose target is the source of another row.

  4. Import it from the URL redirects page with the Import button, review the preview and confirm.

  5. Read the import summary. Rows that Shopify skipped or could not import are listed there: fix them and import them again.

Redirect from,Redirect to
/product/blue-sofa/,/products/blue-sofa
/product-category/sofas/,/collections/sofas
/about-us/,/pages/about-us
/blog/how-to-choose-a-sofa/,/blogs/news/how-to-choose-a-sofa

You can also export the existing redirects to a CSV from the same page. Do it before every large import: it is your backup.

04

From WooCommerce, Magento or PrestaShop: the usual patterns

Old platformOld URLShopify URL
WooCommerce/product/blue-sofa//products/blue-sofa
WooCommerce/product-category/sofas//collections/sofas
WooCommerce / WordPress/about-us//pages/about-us
WooCommerce / WordPress/blog/post-name/ or /post-name//blogs/news/post-name
Magento/blue-sofa.html (product)/products/blue-sofa
Magento/sofas.html (category)/collections/sofas
PrestaShop/123-blue-sofa.html/products/blue-sofa
PrestaShop/12-sofas/collections/sofas

These are starting points, not rules. Check them against your real URLs: themes, plugins and custom settings change the patterns. On Magento be extra careful, because products and categories can both end in .html.

Cart, checkout, account, search and tag pages usually do not need a redirect: they have no rankings to protect.

05

Why your Shopify redirects are not working

A page still exists at the old path. The most common cause. Shopify shows the live product, collection or page and ignores the redirect. Delete or rename the old item, or redirect a different path.

The source is a full URL instead of a path. Use /old-path, not the whole address with the domain.

The target redirects again. If the target of one redirect is the source of another, visitors and Google go through a chain. Point every row straight to the final URL.

A typo in the target. The redirect works, but it lands on a 404. Every target should return a 200.

URLs with parameters. Old URLs such as /?p=123 or /shop/?filter=blue can behave differently from clean paths. Test them one by one after the import, and redirect only the ones that brought traffic or links.

Trailing slashes. Old WooCommerce URLs often end with a slash, Shopify URLs do not. Enter the old path exactly as it was, then test it both with and without the final slash.

06

How to test the redirects after launch

  1. Put every old URL in a list and crawl it in list mode with a crawler such as Screaming Frog.

  2. Every row should show a single 301 followed by a page that returns 200. Fix chains, 404s and redirects to the home page.

  3. In Search Console, watch the Pages report and the 404s over the following weeks. Old URLs should gradually move out of the index as the new ones replace them.

  4. Repeat the crawl after 7 and 30 days. Redirects that worked at launch can break when someone renames a product later.

I have worked on migrations from and to WooCommerce, PrestaShop, Magento and Shopify, including stores with 3,000 to 5,000 products. On catalogs that size the redirect map is not built by hand: it starts from rules for the patterns that repeat and ends with a one-by-one check of the pages that bring traffic, sales or links.

Carmelo Cutrone, SEO Specialist

07

FAQ

301. Shopify URL redirects are permanent, which is the right choice for a migration.
Not natively. Every old URL needs its own row. Some apps add pattern-based redirects, but for most migrations a well-built CSV is enough.
No. Shopify serves the live page first. Delete the old item or change its handle, then the redirect starts working.
Map every old URL to its new Shopify path, put the pairs in a CSV with the Redirect from and Redirect to columns, and import it from the URL redirects page. The patterns table above covers the most common cases.
Not for a standard migration. The built-in redirects and the CSV import cover it. An app can help if you need pattern-based rules or advanced reporting.
As long as the store exists. They cost nothing and keep the value of the links that still point to your old URLs.

Want the redirect map built and checked for you?

Rankono builds the URL inventory and the redirect map, checks the import before launch and monitors the 30 days after. The SEO migration plan starts at €990 for up to 500 URLs, at a fixed price agreed before work starts. If you want the whole move to Shopify handled, products and data included, that is a full migration, priced on quote.

See SEO migration servicesFull WooCommerce to Shopify migration

Written by

Carmelo Cutrone

SEO Specialist, Rankono