Redirects guide

Shopify URL redirect CSV format

What you’ll need

  • Your old store’s URLs (a sitemap, a crawl or a list)

  • Your new Shopify store’s address

  • Shopify’s URL redirect importer, to load the result

    How to get this: Shopify’s URL redirect importer, to load the result

    It’s in Content › Menus › URL redirects › Import. Export a backup first: an import can’t be cancelled once it starts.

    Step-by-step guide (opens in a new tab)

Check my redirect CSV

Example

redirects.csv
Redirect from,Redirect to
/product/blue-shirt,/products/blue-shirt
/product-category/shirts,/collections/shirts
/about-us,/pages/about

Rules that trip people up

  • The header must be exactly “Redirect from,Redirect to”. A space after the comma is a common reason the import fails.
  • Redirect from is a path only: /old-page, not https://yourstore.com/old-page.
  • Each Redirect from can appear once.
  • Shopify allows 100,000 redirects per store (20 million on Plus).
  • Keep .html when the old address had it: a redirect from /old-page doesn’t catch /old-page.html.
  • Shopify’s Help Center says paths starting with /apps, /a/, /cart, /orders or /services can’t be redirected. In our test /apps/…, /checkout/… and /account/… did redirect, but apps can take those paths over, so test them.
  • Shopify stores Redirect from in lowercase and without a trailing slash, and the redirect then works for every case and with or without the slash.

Check a file before importing

  1. Open the Redirect Map Builder and switch to “Check a redirect CSV”.
  2. Drop your file. It flags the header, full URLs, duplicates, chains, loops, live pages and reserved paths. Shopify’s own import only says “1 redirect contains errors”, without saying which row.
  3. Download the fixed file and import that.

More guides