Craftshift logo

Shopify 301 redirects: complete URL migration guide

Shopify 301 redirects: complete URL migration guide

This Shopify 301 redirects guide covers the full URL migration workflow: why redirects preserve link equity, how to set them up in the Shopify admin, how to bulk import them via CSV, when to use 301 vs 302, and the redirect chains and loops that quietly tank rankings. If you are about to rename a collection, change a product handle, or migrate from another platform, read this first.

Redirects are the difference between a clean migration and a six-month traffic crater. Google has been clear since 2016: a 301 passes essentially 100% of PageRank to the new URL. But that only works if the redirect is set up correctly, points directly to the final destination, and is not chained behind two other hops.

Shopify makes the basic case easy. The advanced cases (bulk imports, regex-style patterns, post-migration audits) need a bit more discipline.

In this post

Why redirects matter for SEO

Every backlink your store has earned is tied to a specific URL. Change that URL without a redirect and the link points to a 404. Google drops the page from the index, the backlink stops passing equity, and the rankings collapse.

A 301 redirect (permanent move) tells Google two things: this URL has moved for good, and the new URL inherits the signals. Within a few weeks Google rewrites its index, swaps the new URL into search results, and the backlinks keep working.

The cost of skipping a redirect is brutal. Stores that migrate without one routinely lose 40 to 70% of organic traffic in the first month. The cost of adding one is two minutes in the admin.

Setting up URL Redirects in Shopify

Shopify ships with a built-in redirect manager at Online Store, Navigation, View URL redirects. Every redirect created here is a 301 by default.

  1. Click Create URL redirect.
  2. Enter the old path (just the part after the domain, like /products/old-handle).
  3. Enter the new path or a full URL.
  4. Save.

Shopify also creates an automatic redirect when you change a product or collection handle. There is a checkbox at the bottom of the URL section. Leave it on. Always. The number of stores that uncheck it and immediately 404 their best-performing product is depressing.

For one-off redirects the admin is fine. For anything past 50 redirects, use the CSV import.

Bulk CSV import

The CSV import is on the same URL Redirects page, behind the Import button. The format is dead simple:

Redirect from,Redirect to
/products/old-handle,/products/new-handle
/collections/old-collection,/collections/new-collection
/old-blog-post,/blogs/news/new-blog-post

Two columns, header row, one redirect per line. UTF-8 encoded. Shopify accepts up to 100,000 redirects per import. The job runs in the background and emails you when it finishes.

Before you import, build the CSV from your old sitemap and your new sitemap. Map old URLs to their closest new equivalent. If you do not have an old sitemap, pull the URLs from Google Search Console under Pages, then run them through our Redirect Generator to format the CSV.

Validate every old URL before import using the URL Analyzer so you do not accidentally redirect a URL that is already a 200.

301 vs 302

301 means permanent. 302 means temporary. The HTTP status code is the only practical difference, but the SEO consequences diverge.

Shopify’s URL Redirects feature only creates 301s. That is the right default. If you need 302 behavior for a geo redirect or a personalization test, you have to handle it in your theme code or via a third party app.

Redirects after a migration

Migrations are where redirect discipline pays off the most. Whether you are coming from WooCommerce, Magento, BigCommerce, or another Shopify store, the rules are the same:

  1. Crawl the old site and export every indexed URL.
  2. Match each old URL to its new equivalent on Shopify.
  3. Build a CSV and import it into Shopify URL Redirects before the DNS cutover.
  4. After cutover, recrawl the old URLs and confirm every one returns 301 to the right destination.
  5. Submit the new sitemap to Google Search Console and watch coverage.

The full playbook for a WooCommerce move, including the CSV mapping rules for product, category, and blog URLs, lives in the WooCommerce to Shopify migration guide.

If your migration is also restructuring how variants live as separate products, the structural side is covered by Rubik Combined Listings. You will still need redirects for the old product URLs, but the swatch and grouping logic stays clean.

Redirect chains and loops

A redirect chain is when URL A redirects to URL B, which then redirects to URL C. Google will usually follow up to ten hops, but every hop bleeds a small amount of equity and slows the page load. Best practice is one hop, every time.

Chains build up after several rounds of edits. You rename a product, then rename it again, then rename it a third time. Now you have three redirects pointing at each other in a chain. Fix it by editing the first two redirects to point straight at the final URL.

Loops are worse. URL A redirects to URL B which redirects back to URL A. The browser shows an error, the page never loads, and Google deindexes both URLs. Audit for loops after every bulk import.

Testing redirects

Never trust a redirect you have not tested. Two quick checks catch 95% of problems:

  1. Run the old URL through our SEO Checker or any HTTP header tool. Confirm the response is 301 and the Location header points to the right URL.
  2. Click the new URL in a private browser window. Confirm it loads at 200 with no further redirects.

For larger migrations, run a full crawl of the old sitemap and export the results. Sort by status code. Anything that is not 301 going to a 200 is a problem. Anything that is 301 to 301 is a chain. Anything that is 200 means you forgot to redirect.

Pair the audit with the Shopify SEO checklist for 2026 to catch any indexing issues that surface in the same window.

Common mistakes

FAQ

How do I create a 301 redirect on Shopify?

Go to Online Store, Navigation, View URL redirects, and click Create URL redirect. Every redirect created here is a 301 by default.

How many redirects can Shopify handle?

Shopify supports up to 100,000 redirects per store. That is more than enough for almost any migration. Performance does not degrade until you cross the limit.

Does Shopify create redirects automatically when I rename a product?

Yes, if the auto-redirect checkbox is checked when you save the new handle. Always leave it checked.

Can I use wildcards in Shopify redirects?

No. Shopify URL Redirects only support exact matches. Pattern-based redirects need to be expanded into individual URL pairs in the CSV import.

How long do 301 redirects take to update in Google?

Google typically swaps the new URL into the index within two to four weeks. Link equity transfer is faster, often within days.

Should I delete a redirect after Google has updated?

No. Keep redirects in place permanently. Old backlinks still point to the original URL, and removing the redirect breaks them.

Next step: export your old URL list, build the CSV with the Redirect Generator, import to Shopify, and recrawl the old URLs to confirm every one lands at a clean 301.

Our Shopify Apps

Smart Bulk Image Upload

Bulk upload product images from Google Drive & save time!

Rubik Variant Image & Swatch

Show only relevant variant images on your product pages.

Rubik Combined Listings Swatch app

Rubik Combined Listings

Link separate products as variants with beautiful swatches

CS – Export Product Images

Bulk export product images by vendor, collection or status

Blog Posts