How to Fix 404 Errors on Shopify with URL Redirects (Single and Bulk CSV)
To fix a 404 on Shopify, create a URL redirect from the broken address to the closest live page. In your Shopify admin, go to Content → Menus, click View URL Redirects, then Create URL redirect. For dozens or hundreds of broken URLs, import a CSV on the same screen instead.
When a redirect is the right fix
A visitor or Google lands on a 404 when a URL no longer points to anything. Common causes on Shopify: a product set to Draft, a hidden collection, a deleted page, a renamed URL, or an old link from before a store migration. Shopify's help center notes that hiding a collection or setting a product to Draft makes its URL return a 404, which makes it eligible for a redirect.
Redirect when there is a close replacement: the new product, the parent collection, or a related page. If nothing relevant exists, leaving the 404 is fine. Sending every dead URL to the homepage is a poor experience for shoppers.
Create a single redirect
- In your Shopify admin, go to Content → Menus.
- Click View URL Redirects, then Create URL redirect.
- In Redirect from, enter the old URL, for example
/products/old-shirt. - In Redirect to, enter the new URL. A relative URL such as
/collections/shirtsworks for your primary domain. Use a full URL for another domain. Enter/to send visitors to the homepage. - Click Save redirect. Shopify says it works immediately.
Test it by opening the old URL in a private browser window.
Bulk redirects with a CSV
- Go to Content → Menus → URL redirects.
- Click Import, then Add File, and choose your CSV.
- Click Upload file, review the preview, then click Import redirects.
Shopify provides a sample CSV template on that screen. Download it and match its columns exactly, rather than guessing the format. You can also use Export on the same screen to download your current redirects, edit them in a spreadsheet and re-import.
To delete redirects you no longer want, select them on the URL redirects screen and click Delete selected redirects.
Things that trip people up
- Redirects only work on URLs that actually 404. If the old URL still loads a valid page, the redirect will not fire. Unpublish or delete the old page first.
- Some paths cannot be redirected. Shopify lists these among them:
/apps,/cart,/orders,/shop,/products,/collectionsand/collections/all. This is about the bare paths, so individual product and collection pages that 404 can still be redirected. - Do not redirect
/404to/. Shopify warns this can stop your 404 page from displaying in the theme editor. - Browsers and search engines may cache 301 redirects. Removing one may not stop it working for some visitors right away, so double-check the destination before you save.
- Markets: a redirect applies to all market subfolders, but you can create separate redirects for each subfolder.
- Limits: Shopify documents a cap on the number of redirects per store, higher on Plus. Check the current figure in the help center if you are migrating a very large catalog.
Prevent the next 404
Before you delete a product or change its URL, decide where its old address should point. If you rename product URLs, see renaming a handle safely. Products set to draft can create 404s too, and cleaning up duplicate products is a common time to create several at once, so plan the redirects in the same session.
Want to see what else is weak in your catalog? Run the free catalog audit.
Check your own store in 20 seconds
The free Catalog Audit for Shopify stores scans up to 1,000 products for empty or thin descriptions, duplicate titles, missing alt text and more, then links each issue to a fix.
Prefer to hand it off? I'm Evan, a Shopify and full-stack developer. Leave your email and store URL and I'll reply with a short, prioritized fix list. Free, no obligation.