Blog / Shopify & e-commerce /

Shopify redirects: the URL redirect tool and when to use it

A product handle gets tidied up. A collection is renamed for the new season. An old blog post is folded into a better one. Each of these changes a URL, and every old URL that was bookmarked, linked to or ranking in Google now leads to a “page not found”.

On WordPress, redirects usually mean a plugin or server rules. On Shopify, they’re built in. The URL redirects tool lives under Online Store > Navigation, and for most stores it’s all you need. The catch is one rule that trips up almost everyone the first time.

What Shopify redirects are

Every redirect you create in Shopify is a 301, a permanent redirect. It tells browsers and search engines that the old address has moved for good, and Google will generally pass the old page’s signals to the new one over time. You can’t choose a 302 in the built-in tool, which is fine: for SEO, a permanent move is almost always what you want.

A redirect has two parts:

  • Redirect from: the old path, such as /products/blue-mug-v2
  • Redirect to: the new path or full URL, such as /products/blue-ceramic-mug

The rule that catches people out

A Shopify redirect only works if nothing exists at the old URL.

If a live product, collection or page still sits at the “redirect from” address, Shopify serves that page and ignores your redirect. The redirect only kicks in when the old path would otherwise return a 404.

This trips people up in two ways:

  1. You create a redirect from a product you plan to delete, test it, and it “doesn’t work”, because the product is still there. Delete or rename the product and it starts working.
  2. You try to redirect one live product to another to “merge” them. It won’t happen while both exist.

So the order matters: change or remove the old page first, then check that the redirect takes over.

When Shopify creates redirects for you

When you edit the URL handle of a product, collection, page or blog post, Shopify shows a checkbox to create a redirect from the old URL to the new one. It’s ticked by default. I leave it ticked unless there’s a very good reason not to.

What Shopify doesn’t do automatically:

  • redirect anything when you delete a product or collection
  • redirect URLs from a previous platform after a migration
  • fix internal links in your descriptions, menus and blog posts that still point at the old URL

When to use a redirect

Changed handles

Covered by that checkbox, as long as you leave it on. Worth checking that it actually happened in the URL redirects list afterwards.

Deleted or discontinued products

Not every deleted product needs a redirect, but any that earned traffic or links should go somewhere sensible: the closest replacement, or the collection it belonged to. Redirecting everything to the homepage is the lazy option, and Google often treats it as a soft 404 anyway. I’d rather send people to the closest real match. I went through the choices in out-of-stock products: keep, redirect or remove?.

Merged content

Two thin collections combined into one, or two blog posts on the same topic merged into a stronger one. Delete or unpublish the weaker page, then redirect it to the one you’re keeping. This is often the cleanest fix for keyword cannibalisation.

Migrations

Moving from WooCommerce, Magento or another platform almost always means new URLs, because Shopify forces its own structure (/products/, /collections/, /pages/, /blogs/). That’s where the bulk import comes in.

Bulk redirects with a CSV

For more than a handful, use the import option on the URL redirects page. The file has two columns, Redirect from and Redirect to, one row per redirect.

When I plan a migration, this is the process I follow:

  1. Crawl the old site before it goes offline and export every URL, plus the pages with traffic and links from Search Console and your SEO tool.
  2. Map each old URL to its new Shopify URL. Products to products, categories to collections, posts to posts. This is the slow part, and it’s where the value is.
  3. Import the CSV, then check a sample by hand.
  4. Crawl the old URL list after launch and confirm each one returns a 301 to the right place, not a 404 or a chain of redirects.

You can also export the existing redirects as a CSV, which is handy for audits.

When a redirect is the wrong answer

Redirects fix broken addresses. They don’t fix everything.

  • Duplicate URLs created by Shopify itself (like a product reached through /collections/mugs/products/blue-mug) are handled by canonical tags, not redirects. More in duplicate product content.
  • Temporarily out-of-stock products should usually stay live. Redirecting them throws away a page you’ll want back next month.
  • Internal links should be updated to point straight at the new URL. A redirect works, but every hop is a small delay for shoppers and a wasted step for crawlers.

Keep the list tidy

Over time, redirect lists collect junk: chains (A to B, then B to C), loops, and redirects pointing at pages that have since been deleted. Once or twice a year, export the list and check:

  • Does every “redirect to” URL return a 200?
  • Are there chains you can collapse so A goes straight to C?
  • Are there redirects from URLs that now have live pages again (and so aren’t doing anything)?

The Search Console page indexing report will also flag 404s that Google has found, which is a quick way to spot URLs that need a redirect you forgot about.

Open your URL redirects list today and export it. If you’ve never looked, you’ll probably find a chain worth collapsing. How many will you find?