Shopify

Shopify 301 Redirects: Create Them, Import a CSV, and Fix 404s

Vincent Fredet·Founder of Scale Ova
·11 min read
Shopify 301 Redirects: Create Them, Import a CSV, and Fix 404s

You renamed a product, deleted a collection, or left WooCommerce for Shopify. The old links now lead to an error page. A customer who clicks one lands on "Page not found," and Google eventually drops the page from its results. A redirect fixes that. It sends the visitor from the old URL to the new one without them noticing.

What a 301 redirect is for

A 301 redirect tells the browser and Google that the page has moved for good. Google's documentation says its systems treat it as a strong signal. The new URL then replaces the old one in search results.

On a store, four situations keep coming up:

  • You change a product's URL, for example to put a better keyword in it.
  • You delete a product and want to send its visitors to a similar one.
  • You're coming from another platform like WooCommerce or PrestaShop. Its URLs don't look like Shopify's.
  • A broken link is still out there, for example in an old ad or an article about you.

In all four cases, the old URL returns a 404 error. That's exactly what lets Shopify redirect it.

How to create a URL redirect, step by step

Many tutorials still mention Online Store > Navigation. The Shopify Help Center now gives a different path.

  1. In your Shopify admin, go to Content > Menus.
  2. Click View URL Redirects.
  3. Click Create URL redirect.
  4. In Redirect from, enter the old URL, for example /products/vintage-berber-rug.
  5. In Redirect to, enter the new one, for example /collections/rugs.
  6. Click Save redirect.

For a page on your own store, a relative URL is enough, like /collections/rugs. To send people to another site, enter the full URL with https://. And to send them to your home page, Shopify just asks for /.

Then test it by typing the old URL in your browser. If it doesn't take you anywhere, clear your cache or try on your phone. Shopify says redirects start working immediately.

When you change the URL of a product or a page

The end of a product's URL is called the URL handle. You'll find it in the Search engine listing section of the product, behind the pencil icon. Shopify creates it from the title when you add the product.

When you edit that handle, Shopify can create the redirect for you. For a page, the Help Center describes a Create a URL redirect option, selected by default. For a collection, it mentions Create a URL redirect from the previous handle. Keep that box checked. Otherwise the old URL ends up as a 404.

The Help Center's product page doesn't describe this option. Shopify's API does provide the same redirect when a product handle changes, though. After each change, open the redirect list and check that the new line is there. If it's missing, create it by hand with the steps above.

Don't change the handle too often. The Help Center warns that a product whose handle keeps moving may drop out of search results. Pick it carefully once, at the start. The rest of the SEO settings are covered in the Shopify SEO guide.

How to import redirects by CSV

Past a dozen URLs, importing a file is faster. Shopify offers a sample file to download from its help page. It has two columns with these headers:

Redirect from,Redirect to
/product/berber-rug/,/products/berber-rug
/12-kilim-rug.html,/products/kilim-rug
/product-category/rugs/,/collections/rugs

Each row is one redirect. The first column takes the old URL, the second the new one. Build the file in a spreadsheet, then save it as CSV.

To import it:

  1. Go to Content > Menus, then click URL redirects.
  2. Click Import.
  3. Click Add File and select your CSV file.
  4. Click Upload file.
  5. Review the import preview.
  6. Click Import redirects, then Close.

The reverse works too. The Export button in the same list downloads your redirects as a CSV. Export before a big import, so you keep a copy of what was there.

Shopify allows up to 100,000 redirects per store, and 20 million on the Plus plan. These limits were checked on October 29, 2026. The Help Center suggests a third-party app for a very large number of redirects. For a migration of a few hundred products, the admin's CSV import is enough.

What Shopify won't let you redirect

This is where most redirects that "don't work" find their explanation. Shopify only redirects broken URLs. If the old URL still shows a real page, the redirect exists but does nothing.

The Help Center also lists URLs you can't redirect:

  • those starting with /apps, /application, /cart, /carts, /orders, /services, or /shop;
  • Shopify's fixed paths themselves, meaning /products, /collections, and /collections/all;
  • reserved paths like /collections/vendors, /collections/types, /a/, /community/, and /tools/;
  • collections filtered by tag, like /collections/rugs/wool, even when no product has that tag.

Don't misread the second rule. You can't redirect /products on its own. You can redirect /products/vintage-berber-rug, though, and the Help Center uses that very kind of example with a deleted product.

Two more cases cause trouble. A URL ending in .html can't point to the same URL without .html, because Shopify treats them as one. And a URL with parameters after a question mark might not work as expected.

Want to redirect a product that still exists? Set it to Draft first, or remove it from every sales channel. Its URL then returns a 404 and the redirect works. For a collection, set its online store visibility to Hidden. The Help Center warns about a side effect. If you make the collection visible again later, Shopify deletes the redirect on its own.

Redirects after a migration

Shopify organizes its URLs one way. A product lives under /products/, a collection under /collections/. Other platforms do it differently. WooCommerce puts its products under /product/ and its categories under /product-category/. PrestaShop ends its product URLs with .html, with a number before the name.

All those old URLs turn into 404s after the move. The Shopify Help Center recommends redirecting at least your important pages to keep your rankings. It also recommends setting them up before you transfer your domain. Customers who saved a link then reach the right page from day one.

The method takes three steps:

  1. List your old URLs. Start with the most visited pages of your old site, then add the rest of the catalog.
  2. Match each URL to its new page. An old product goes to the same product on Shopify, an old category to the matching collection.
  3. Import everything by CSV, then test the URLs that matter most one by one.

Make one redirect per page, not one blanket redirect. The visitor then lands on what they were looking for. If you're still weighing the move, the Shopify vs WooCommerce and Shopify vs PrestaShop comparisons break down what switching costs.

How to find the 404 pages to redirect

Not sure which URLs are broken? Google Search Console tells you for free. Open the Page indexing report. In the list of reasons pages aren't indexed, click Not found (404). You get the URLs Google tried to visit without finding a page.

Not all of them deserve a redirect. Google says a 404 isn't a problem when a page was removed with no replacement. Redirect the ones that have a real successor, or the ones that still get visits and links. Once your redirects are in place, click Validate fix so Google comes back to check.

If your store isn't connected to Search Console yet, the Shopify SEO guide shows how to verify your domain and submit your sitemap.

The traps that keep coming back

  • Redirecting everything to the home page. It's the most common reflex, and Google advises against it. It says many old URLs sent to one unrelated page may be treated as a "soft 404" error. Send a deleted product to a similar product or to its collection instead.
  • Redirecting the 404 page itself. A redirect from /404 to / stops the theme editor from showing your 404 page. The Shopify Help Center says to remove that kind of redirect.
  • Chains. A redirects to B, which redirects to C. It happens when a URL changes several times. Google follows up to 10 hops, but recommends sending people straight to the final destination. When you change a URL that's already redirected, update the old redirect too.
  • Loops. A redirects to B and B goes back to A. The browser shows an error, and Search Console files it under Redirect error. Reread both fields before saving.
  • Deleting a redirect too soon. Google recommends keeping them for at least a year, and ideally forever. They cost nothing to leave in place.
  • Deleting and recreating to test. Browsers cache 301 redirects. A deleted redirect can keep working on your device for a while. Test on another device.

Good news for stores in several languages. A redirect automatically applies to every language and market subfolder. A single row from /products/vintage-berber-rug to /collections/rugs also covers the /fr/ version of your store.

Doing it in one sentence with Ova

If your store is built with Scale Ova, you can ask Ova for a redirect instead of filling in the fields. For example: "The vintage Berber rug is no longer sold, redirect /products/vintage-berber-rug to the Rugs collection." Ova creates the redirect in your Shopify admin. It can also list your redirects, fix one, or delete some. It asks you to confirm before deleting anything. Ova creates them one at a time. For hundreds of URLs after a migration, the admin's CSV import is still faster.

FAQ

How do you create a 301 redirect on Shopify?
Go to Content > Menus, click View URL Redirects, then Create URL redirect. Fill in Redirect from with the old URL and Redirect to with the new one. Click Save redirect.
Why isn't my Shopify redirect working?
Most often, the old URL still shows a page. Shopify only redirects URLs that return a 404. Also check for typos, and make sure the URL doesn't start with a blocked prefix like /cart or /apps. Then clear your browser cache.
How do you redirect a deleted product on Shopify?
Once the product is deleted, its URL returns a 404. Create a redirect from /products/product-name to a similar product or to its collection. Avoid the home page.
How do you bulk import redirects on Shopify?
Prepare a CSV file with two columns, Redirect from and Redirect to. In Content > Menus, open URL redirects and click Import. Review the preview, then click Import redirects.
How many redirects can you create on Shopify?
Up to 100,000 per store, and 20 million on the Plus plan. That's what the Help Center said on October 29, 2026.
Can you redirect every 404 page to the home page?
It's not a good idea. Google says mass redirects to an unrelated page can count as "soft 404" errors. Redirect each URL to the page that replaces it. Leave the ones with no replacement as 404s.
Can you redirect to another website?
Yes. Enter the full URL, with https://, in the Redirect to field. For a page on your own store, a relative URL like /collections/rugs is enough.
How is this different from the store's automatic redirection?
That Shopify setting doesn't touch your old URLs. It sends visitors to the version of your store that matches their market or language. URL redirects are for URLs that changed or disappeared.

Sources