On this page
← Back to Blog
  • shopify
  • url-redirects
  • csv

How to Create Shopify URL Redirects in Bulk

How to Create Shopify URL Redirects in Bulk

Quick answer

To create Shopify URL redirects in bulk, pair each old URL with its replacement, save the pairs as a CSV with Redirect from and Redirect to columns, then import the file from Content → Menus → URL redirects. Test the old URLs afterward: Shopify redirects work only when the source URL returns a 404.

Changing a product handle is easy. Finding every link to the old handle is harder. The same problem turns up when you remove seasonal collections, merge pages, or move a store to Shopify. A redirect sends someone who visits an old URL to the page you chose to replace it.

For a single product, you may not need a CSV at all. When you edit a product's URL handle in the admin, Shopify shows a Create a URL redirect checkbox, and leaving it checked redirects the old URL for you. A bulk file is for everything else: handles changed by a product CSV import, retired collections, merged pages, and platform migrations.

Shopify lets you import redirects from a CSV file, so you can prepare the list in one pass.

Start with an old-to-new URL map

Write down each old URL and the page that should receive its visitors. Choose a relevant replacement: an updated product for an old product, or a current collection for a retired collection. If you are moving from another platform, collect the old paths before you change the domain or remove the old site.

For a CSV import, Shopify uses two column names: Redirect from and Redirect to. The old address belongs in Redirect from; its destination belongs in Redirect to. A small file might look like this:

Redirect from,Redirect to
/products/old-mug,/products/new-mug
/collections/summer-2025,/collections/summer
/pages/old-size-guide,/pages/size-guide

Use the path after your store's domain for a redirect within the same store. Keep the leading slash. If the destination is on a different site, Shopify accepts an external URL in Redirect to; check the destination carefully before importing.

If your list is still in plain text, the free Shopify Redirect CSV Generator can make the two-column file. Paste one old-to-new pair per line, separated by an arrow, a comma, or a tab. For example:

/products/old-mug → /products/new-mug
/collections/summer-2025 → /collections/summer

The tool shows the generated CSV and offers a download. It turns a full old URL into its path in Redirect from. It does not check whether the old path is eligible for a Shopify redirect, whether a destination exists, or whether you have entered the same source twice. Review those points yourself before import.

Import the CSV in Shopify

Redirect imports now live under Content → Menus, not the older Online Store → Navigation path you may see in other guides.

  1. In your Shopify admin, open Content → Menus → URL redirects.
  2. Click Import, then Add file and select the CSV.
  3. Click Upload file. Review Shopify's import summary.
  4. Click Import redirects and close the dialog when it finishes.

For a large migration, import a small sample first. Visit each old URL in a browser and check that it reaches the intended new page. Once that sample works, import the rest of your list and spot-check product, collection, and page URLs.

Check the paths Shopify cannot redirect

An imported row is not a promise that every visitor will be redirected. The source URL must be broken: if an active page still loads at the old address, the redirect will not run. For example, change or remove the old product handle before testing a redirect from that product URL. This is an easy step to miss when you prepare the CSV ahead of a launch.

Shopify also reserves paths such as /cart, /orders, and /services, along with some fixed paths. You cannot create normal redirects from those addresses. Collection tag URLs, query strings, and market subfolders have their own rules. Check Shopify's redirect page linked above if a row imports but the old URL still behaves unexpectedly.

For stores with several languages or markets, test the actual URLs customers use. A redirect from a base path can apply within market subfolders, but a destination that needs to differ by market requires its own redirect. Browsers may also cache 301 redirects, so retest in a fresh browser session or on another device if a recent change seems to stick.

A quick pre-import checklist

  • The file has exactly the Redirect from and Redirect to headers.
  • Every old path starts with / and points to the right destination.
  • No source path is duplicated or still serving an active page.
  • None of the source paths is reserved by Shopify.
  • You have tested a few examples in the storefront, including any market URLs you use.

If you changed handles through a product CSV import, you need the old and new handles side by side. If that import fails, see how to fix product CSV import errors. ShopSheets syncs every product's handle to a Google Sheet, so you can copy the current list before the import and compare it with the list after, then paste the pairs into the redirect generator.

Ready to try it?

Automatic Shopify → Sheets sync.

Orders and fulfillments — always up to date in your spreadsheet.

Try ShopSheets free