Shopify redirects: how to create, import and fix URL redirects

Shopify redirects creation guide

Shopify redirects send visitors and search engines from an old URL on your store to a new one, and you create them in Content > Menus > View URL Redirects in your Shopify admin. Shopify only redirects URLs that are actually broken (returning a 404), so a redirect from a page that still exists will do nothing.

That second sentence explains most "my redirect isn't working" questions. Below: when you need a redirect, how to add one, how to import thousands at once by CSV, what happens when you change a handle, and how redirects fit with canonical tags and duplicate content on Shopify.

Illustration of people moving a URL sign along a redirected road

What a Shopify URL redirect is

A URL redirect is a rule that says "when someone asks for this path, send them to that one instead." On Shopify, each redirect has two fields:

  • Redirect from: the old path, for example /products/blue-t-shirt or /old-shipping-info.php.
  • Redirect to: the new destination. Use a relative path such as /collections/t-shirts for anything on your primary domain, a full URL for anything off it, or / for the home page.

Redirects start working as soon as you save them. Shopify's redirects are permanent (301) redirects, so browsers and Google treat the new URL as the replacement for the old one.

When you need a redirect

Add a redirect whenever a URL that people or search engines know about stops working. The common cases:

  • You deleted a product, collection, page or blog post that had traffic, backlinks or rankings.
  • You changed a URL handle, for example renaming /products/blue-tee-2 to /products/blue-t-shirt.
  • You moved to Shopify from another platform and your old URLs (/product.php?id=12, /shop/blue-shirt.html, /policies/shipping) don't exist on Shopify.
  • You merged two similar products or pages into one.
  • Search Console or a crawler shows 404s for URLs that used to be real pages.

You don't need a redirect for a page you simply edited, or for a URL nobody ever visited or linked to. Redirects are for URLs with history.

How to create a redirect in the Shopify admin

Shopify moved URL redirects out of the old Online Store > Navigation screen. They now live under Content > Menus:

  1. From your Shopify admin, go to Content > Menus.
  2. Click View URL Redirects.
  3. Click Create URL redirect.
  4. In Redirect from, enter the old path, starting with / (for example /products/old-handle).
  5. In Redirect to, enter the new path (for example /products/new-handle), a full URL for another domain, or / for the home page.
  6. Click Save redirect.

Then test it: open the old URL in a private browser window and confirm you land on the new page.

From the same list you can search and filter redirects by date added, edit one or several at once, delete in bulk, and export the full list to CSV. Export the list before any big cleanup so you have a backup.

Paths Shopify won't let you redirect

Shopify blocks redirects from some paths. You can't redirect URLs that:

  • Start with /apps, /application, /cart, /carts, /orders, /services or /shop.
  • Are the fixed paths themselves: /products, /collections, /collections/all.
  • Are other reserved paths: /collections/vendors, /collections/types, /a/, /community/, /tools/.
  • Use collection tag filtering, such as /collections/shirts/blue. Even if no product has that tag, Shopify treats the URL as valid.

Two more quirks from Shopify's help center: a .html URL can't redirect to the same URL without .html (Shopify treats them as one URL), and URLs with query strings (?id=12&color=blue) "might not work as expected."

How to bulk import redirects with a CSV

For a migration or a large catalog cleanup, add redirects in bulk:

  1. Build a CSV with two columns, headed exactly Redirect from and Redirect to. Shopify's sample file uses this format:

    Redirect from,Redirect to
    /example_product.php,/products/example-product
    
  2. Go to Content > Menus > View URL Redirects and click Import.

  3. Click Add File, choose your CSV, and click Upload file.

  4. Review the preview, then click Import redirects.

  5. Click Close and spot-check a handful of the imported redirects in a browser.

You can download Shopify's sample redirect CSV from the URL redirects help page. Shopify doesn't publish a row limit for a single import, so for very large lists import in batches of a few thousand rows and spot-check each batch before the next.

The store-wide limit is 100,000 redirects, or 20,000,000 on Shopify Plus. For anything near those numbers, Shopify itself suggests a redirect app. If you see a "Redirect Limit Exceeded" error from the Admin API, that's a different problem: it means an API request is hitting too many server-side redirects, not that you've run out.

Developers can also create redirects through the Admin API (the UrlRedirect object) and Shopify Flow has a Create redirect URL action, which helps if your catalog changes daily.

Changing a product, collection or page handle

When you change a URL handle, Shopify can create the redirect for you:

  • Collections: in Search engine listing, edit the URL handle and select Create a URL redirect from the previous handle.
  • Pages: after you edit the web address, the Create a URL redirect option is already selected.
  • Products: you edit the URL handle in the product's Search engine listing section. If Shopify shows a Create a URL redirect checkbox when you change the handle, leave it ticked. Either way, open View URL Redirects after saving and confirm the old-to-new redirect exists. Add it by hand if it doesn't.

Shopify also warns not to change handles too often, or the item "might not display in search engine results." Pick a clean handle once and leave it.

One trap: if you change a handle and later change it back, you can end up with a redirect pointing from a live URL, or two redirects pointing at each other. Check the redirect list after any rename.

Redirects when you migrate to Shopify

Migrations are where redirects matter most, because almost every URL changes. Shopify's URL structure is fixed (/products/, /collections/, /pages/, /blogs/<blog>/), so a WooCommerce /product/blue-shirt/ or a Magento /blue-shirt.html will 404 on Shopify unless you redirect it.

A practical order of work:

  1. List every old URL that matters. Pull them from your old sitemap, Google Search Console (Pages and Performance reports), analytics, and your backlink data. Google's site-move guide recommends starting with your most important URLs.
  2. Map each old URL to its closest new URL, one to one where you can. A product goes to the same product, a category to the matching collection.
  3. Import the map as a CSV before you point your domain at Shopify. Shopify's migration guide says to set up redirects in advance for pages customers may have bookmarked.
  4. Point your domain at Shopify. Redirects run on Shopify, so they only fire for domains connected to your store.
  5. Test your top URLs by typing each old address into a browser, then watch Search Console for new 404s over the following weeks.
  6. Keep the redirects. Google recommends keeping redirects after a move "generally at least 1 year," and there's little reason to remove them at all.

Our platform guides cover the details for each source, for example WooCommerce to Shopify, WordPress to Shopify, Squarespace to Shopify, Wix to Shopify and Big Cartel to Shopify. If you're changing your store's domain rather than its platform, see how to change your URL on Shopify.

Why Shopify won't redirect a URL that still exists

Shopify's rule is simple: you can redirect only from broken URLs. If the "Redirect from" path still loads a page, the page wins and the redirect is ignored. Shopify doesn't show an error when this happens, which is why redirects can look as if they "don't work."

To make a live URL redirect, take the page offline first:

  • Products: set the product to Draft, or remove it from all sales channels. The URL then returns a 404 and the redirect starts working.
  • Collections: set Online store visibility to Hidden.
  • Pages and blog posts: hide or delete them.

Shopify's help center uses this for seasonal swaps: hide /collections/fall, redirect it to /collections/summer. Note that if you set the hidden collection back to Visible, Shopify deletes the redirect automatically, so you'd need to recreate it next season.

Redirecting 404s

Your 404s are a list of redirects waiting to be made. To find them:

  • In Google Search Console, check Pages > Not found (404) and look for URLs with backlinks or past traffic. Our guide to Google Search Console for Shopify SEO shows where to find this.
  • In your analytics, filter page views by your 404 page title.
  • Run a crawler over your old sitemap after a migration.

Redirect each URL that matters to its closest relevant page: a discontinued product to its replacement or its collection, not to the home page. Google's own guidance warns that sending many old URLs to one unrelated page, like the home page, "can be treated as a soft 404," so you lose the value you were trying to keep. A 404 is fine for URLs that never had traffic or links.

Avoid a blanket redirect from /404 to /. Shopify notes that it also breaks the 404 page preview in the theme editor. For more on handling broken links, see our guide to fixing Shopify 404 errors with redirects.

Illustration of a 301 redirect sending visitors from one browser window to another

Redirect chains and how to avoid them

A redirect chain is A → B → C: an old URL redirects to a URL that itself redirects. Chains build up on Shopify when you rename a handle more than once, or when a migration's redirects point at URLs you later changed.

Googlebot generally follows up to 10 redirect hops, but each hop slows the visitor down. Google recommends redirecting old URLs straight to their final destination and, where that's not possible, keeping chains to 3 hops at most.

To clean them up:

  1. Export your redirects to CSV from View URL Redirects.
  2. Look for any Redirect to value that also appears in the Redirect from column.
  3. Change the first redirect to point at the final URL, then re-import or edit in the admin.

Also update your own menus, internal links and product descriptions to the new URLs, so your store isn't relying on its own redirects.

Duplicate content and canonical tags on Shopify

Redirects fix URLs that are gone. Duplicate content is the opposite problem: the same page is live at more than one URL. On Shopify the classic case is the product page:

  • /products/blue-t-shirt
  • /collections/t-shirts/products/blue-t-shirt

Both load the same product. Themes create the second form when they link to products from a collection (Shopify's within Liquid filter does this), and Shopify's developer docs warn that this puts "the same content on separate URLs." You can't redirect the collection-path URL, because it's a valid page.

Canonical tags handle it instead. Shopify's help center says auto-generated canonical tags are added to pages to prevent duplicate content from appearing in search results. On collection-path product URLs, themes that output Shopify's canonical_url point the canonical at the plain /products/<handle> URL, so Google indexes one version. You can confirm it on your own store: open a product from a collection, view the page source and search for rel="canonical".

Two things worth checking on your own store:

  • View the source of a product page opened from a collection and find rel="canonical". It should show /products/<handle>. Custom or heavily edited themes sometimes drop the tag.
  • Check your theme's product links. Many current themes link to /products/<handle> directly. If yours links through collection paths, a developer can change that, which saves crawl effort even though the canonical already covers indexing.

If you sell in several markets, Shopify sets a self-referencing canonical on each market version and links them with hreflang tags, so those aren't duplicates either. A redirect on your main domain also applies to your market subfolders, for example /en-ca/products/blue-t-shirt. Create separate subfolder redirects only if a market needs a different destination.

A redirect is a 301; a canonical is a hint. Use a redirect when the old URL should disappear, and a canonical when both URLs need to keep working for shoppers. Assistants like ChatGPT and Google's AI Overviews pick up the URLs search engines index, so a clean set of canonical, non-redirecting URLs also helps your products get found and cited in AI search. Nobody can promise how an assistant will answer, but broken or duplicate URLs don't help.

What to do next

  1. Open Content > Menus > View URL Redirects and export your current list as a backup.
  2. Pull your 404s from Search Console and redirect any with links or traffic to their closest match.
  3. Check the export for chains and fix them to point at the final URL.
  4. View the source of one product page opened from a collection and confirm the canonical tag points to /products/<handle>.
  5. Before your next migration or handle change, build the URL map first and import it before going live.

Frequently asked questions

Does Shopify do 301 or 302 redirects?
Redirects you create in Content > Menus > View URL Redirects are permanent 301 redirects, which is what Shopify's help center calls them. You can't switch one to a temporary 302 in the admin; if you need a temporary detour, hide the product or collection and delete the redirect when it comes back.
How many redirects can a Shopify store have?
Up to 100,000 URL redirects per store, or up to 20,000,000 on Shopify Plus. Shopify suggests a redirect app if you need to manage very large numbers.
Why isn't my Shopify redirect working?
Most often the old URL still loads a live page, and Shopify only redirects URLs that return a 404. Check for typos, make sure the path isn't reserved (such as /cart, /apps or a collection tag URL), then clear your browser cache or test in a private window, because browsers cache 301s.
Do redirects hurt SEO?
A 301 to a closely matching page passes the old URL's signals to the new one, and Google treats it as a sign the new URL should be indexed. What hurts is sending lots of old URLs to the home page, which Google can treat as a soft 404, and chains of several redirects in a row.
Can I redirect a product URL that's inside a collection path?
Not with a URL redirect: /collections/<collection>/products/<product> still loads while the product exists, so Shopify won't redirect it. Your theme's canonical tag handles that duplicate instead. See the section on duplicate content below.