Guide

How to set up URL redirects in Shopify

Set up Shopify URL redirects in Content > Menus: one at a time, on a handle change, or in bulk from a CSV. Real admin screenshots and the 404 rule.

Portrait of Rishi Babu

Written by

Rishi Babu

Lead marketer at Cascayd

11 min read
A saved redirect in our test store. Anyone who opens the old bag link now lands on the new product.

Before you start: which URLs need a redirect

You need a redirect when a link that people or Google already use stops working. On Shopify that usually happens in four ways:

  • You changed a product, collection, page or blog post URL handle.
  • You deleted a product or set it to draft, and old ads, emails or search results still point at it.
  • You moved from another platform, so every old address is different. WooCommerce uses /product/name/ where Shopify uses /products/name.
  • You merged two collections or retired a seasonal one.

To find the broken ones, open Google Search Console and check Pages, under Not found (404). If you've just migrated, export your old site's sitemap before you switch it off. That list of old URLs is the thing you'll need most.

One rule decides almost every "my redirect doesn't work" problem. Shopify only redirects an address that is broken. If a product, collection or page still loads at the old path, it wins and the redirect is ignored.

1. Create a single URL redirect

Say you used to sell a "Weekender Bag - Sand" at /products/weekender-bag-sand. You've retired it, and the Canvas Weekender Bag replaces it. You still have a few Instagram link stickers and a Klaviyo flow pointing at the old one.

In your Shopify admin, go to Content > Menus and click URL redirects at the top right, next to Create menu.

URL redirects live under Content > Menus, not in Settings.

If you've never added one, the page says Manage your URL redirects. Click Create URL redirect. In Redirect from, enter the old path, starting with a slash: /products/weekender-bag-sand. You don't need the domain. In Redirect to, enter the new path: /products/canvas-weekender-bag. To send people to another website, use the full URL with https://. The Redirect to box doesn't search your products as you type, so copy the path from the new page's address bar.

Paths only, both starting with a slash.

Click Save redirect. It's live as soon as it saves. Shopify keeps you on the saved redirect, with a link to view your redirects or create another.

Pick the closest match you have. A retired bag should go to its replacement, or to the bags collection. Sending everything to the home page makes the shopper start again, and Google tends to treat a pile of home page redirects like missing pages.

2. Change a URL handle and let Shopify add the redirect

Most redirects get created this way without anyone noticing. Open a product, collection or page, scroll to Search engine listing and click the edit icon next to it. Change the URL handle. A checkbox appears under it, already ticked, that names both handles: Create a URL redirect for old-handle → new-handle.

We changed our Ceramic Pour-Over Set from ceramic-pour-over-set to pour-over-coffee-set to match how people search for it.

Leave the box ticked. Untick it only if you're about to reuse the old handle for something else.

Click Save in the Unsaved changes bar and wait for Changes saved. Back in URL redirects, the new row reads from /products/ceramic-pour-over-set to /products/pour-over-coffee-set.

The redirect Shopify added on save. You can edit or delete it like any other.

Don't rename the same thing twice in a month. Each rename adds another redirect, and Google has to learn a new address each time. The search engine listing guide covers the title and description fields in the same section, which you can change as often as you like without a redirect.

3. Import redirects in bulk from a CSV

For a migration, or more than a dozen redirects, use a CSV. It needs two columns with these exact headers:

Redirect from,Redirect to
/product/merino-crew-tee,/products/merino-crew-tee
/product/canvas-weekender-bag,/products/canvas-weekender-bag
/product-category/bags,/collections/all

Build it in Google Sheets and download it as CSV. Use paths, not full URLs, in the first column.

  1. In URL redirects, click Import. On an empty list the button reads Import URL redirects.
  2. Click Add files, choose your CSV (it takes .csv, .txt or .xls) and click Upload file. The dialog also links to a sample CSV template if you want to start from Shopify's.
The file is added. Upload file stays greyed out until you add one.
  1. Shopify opens Import details, which tells you how many redirects your file contains and lists every row. Check the count matches your file.
The review step. If a row looks wrong, cancel, fix the CSV and upload it again.
  1. Click Import redirects. Shopify shows Import in progress (you can close it, and Shopify emails a summary when it's done), then Import complete with the number added. Click Close. In our store the new rows only appeared after we refreshed the list.
The imported redirects, ready to test.

WooCommerce links usually end in a slash, like /product/merino-crew-tee/. In our test store, /product/merino-crew-tee/ with the slash also landed on /products/merino-crew-tee, even though the CSV row had no slash. Test a couple of your own slashed links anyway once the import finishes.

4. Test, export and clean up redirects

Open a private browser window, paste in the old address with your domain, and check you land on the new page with the new address in the bar. Do this for every single redirect, and for a sample of 10 or so from a bulk import.

The old WooCommerce-style link lands on the Shopify product.

The list gets long fast. Use Search and filter to find a path. To keep a backup, click Export. Current page is picked by default, so choose All URL redirects (or URL redirects by date for a recent batch), pick the CSV type and click Export URL redirects. Ours downloaded straight away.

Export before a big clean-up, so you can put things back.

To delete redirects, tick them, click Delete selected redirects in the bar above the list, then Delete to confirm. Shopify warns that deleted redirects can't be recovered.

Deleting is instant. Browsers that already followed a redirect may keep using it for a while, because permanent redirects are cached.

When a redirect doesn't fire

Work through these in order:

You can have up to 100,000 redirects on standard plans and 20 million on Plus, so most stores never hit the limit.

What to test on the pages your redirects land on

A redirect keeps the visitor. Whether they buy depends on the page they land on, and that page now gets traffic it was never written for. Someone who clicked a two-year-old "Weekender Bag - Sand" pin and lands on the Canvas Weekender Bag is wondering if they're in the right place.

That's testable. A one-line note at the top of the product ("The Sand weekender is now the Canvas Weekender, same size, tougher canvas") against no note. A collection landing against the closest single product. Judge it on revenue per visitor for that redirected traffic, and keep the redirect itself the same in both versions, so the only thing changing is the page.

That's what we do: our team researches your store, designs tests for the pages your traffic actually lands on, and measures each one on real Shopify orders. AI speeds up the build, and you approve every test in Slack. We only charge when you make money. If you're curious whether your old links and ads are landing on pages that sell, book a call.