Store Optimization

How to Fix 404 Errors on Shopify

Ongoing Team
A signpost pointing away from a closed door with a warning sign toward an open door with a shopping bag, showing a Shopify redirect fixing a 404 error

To fix a 404 error on Shopify, create a URL redirect that sends the old, broken address to the page that replaced it. You do this in your Shopify admin under Content > Menus > View URL Redirects. Once the redirect is saved, anyone who follows the old link lands on a real page instead of a dead end.

The harder part is knowing which links are broken and where each one should go. This guide covers both.

Key takeaways

  • A 404 is the "page not found" screen a shopper sees when a link points to an address that no longer exists on your store.
  • Most Shopify 404s come from deleted products, changed web addresses, unpublished items and old links on other sites.
  • Fix each one with a URL redirect to the closest matching page, not automatically to your home page.
  • When you change a page's web address in Shopify, keep the Create a URL redirect option ticked so the old link keeps working.
  • Fix the broken links that get the most visits first.

What a 404 error is

Every page on your store has an address, such as yourstore.com/products/linen-apron. When someone visits an address that doesn't match any page, Shopify shows your theme's "page not found" page. Behind the scenes the server answers with the code 404, which is where the name comes from.

A 404 isn't a fault in your store. It just means the link someone followed points nowhere. The problem is what happens next: the shopper who clicked a link to your linen apron gets an error message instead of the apron, and many will leave rather than search for it.

Why 404 errors happen on Shopify

These are the usual causes:

  • You deleted a product, collection, page or blog post. Its address stops working straight away, but links to it on Google, social media, emails and other websites stay where they are.
  • You changed a web address. In Shopify the last part of an address is called the handle. If you rename /products/linen-apron to /products/linen-kitchen-apron and don't keep a redirect, the old address breaks.
  • You set an item to draft or hid it. Shopify's URL redirect guide notes that a draft product or hidden collection returns a 404 to shoppers.
  • You moved to Shopify from another platform. Your old site likely used different address patterns, so every link and search result pointing at the old addresses breaks.
  • Someone linked to you with a typo. A blogger, a supplier or your own newsletter may have a misspelled link.

Why 404s matter for shoppers and for Google

For shoppers, a 404 interrupts a visit that was going somewhere. They clicked because they wanted a specific product. A redirect puts them on that product, or on its closest replacement, without them noticing anything went wrong.

For Google, the picture is calmer than many SEO tools suggest. Google's documentation on status codes explains that pages returning a 404 are removed from its search results over time. That's expected behaviour for pages you've deleted on purpose. What you lose is the old page's place in search results and the value of any links other sites pointed at it. A permanent redirect (a "301", the kind Shopify creates) tells Google the page has moved, and Google treats that as a strong signal to show the new page instead.

So you don't need to panic about every 404. Focus on the ones that real visitors or other websites still reach.

How to find 404 errors on your Shopify store

Shopify doesn't keep a list of the 404s your visitors hit. You have a few ways to find them.

Google Search Console. If your store is set up in Google Search Console, the Pages report lists addresses Google tried to visit that returned "Not found (404)". This shows what Google found, not what shoppers clicked, and it can lag by days or weeks.

Your own records. If you've recently deleted products, changed handles or migrated stores, list the old addresses before they fade from memory. A product export from Shopify (or from your old platform) gives you the handles.

A broken link tool. Some apps record each visit to your 404 page as it happens, so you see the exact addresses shoppers hit and how often. Ongoing SEO does this through its app embed (a small piece of the app you switch on in your theme editor). It lists each missing page once, with the number of visits and the page or site that sent the visitor there. That last detail is useful: if most visits come from one blog post, you can also ask its author to update the link.

Once you have the list, sort it by visits and start at the top. A broken link that got one visit last year can wait. One that gets visits every day is costing you sales now.

How to set up a URL redirect in Shopify admin

Here's the manual method, using the steps from Shopify's URL redirect guide:

  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 address, for example /products/linen-apron.
  5. In Redirect to, enter the new address, for example /products/linen-kitchen-apron. Use / for your home page.
  6. Click Save redirect.

The redirect works immediately. Test it by opening the old address in a private browser window.

A few rules from Shopify's guide that trip people up:

  • A redirect only works if the old address is broken. If a live page still exists at that address, Shopify shows the page and ignores the redirect.
  • Some addresses can't be redirected, including /products, /collections, /collections/all and paths starting with /cart, /orders or /apps.
  • You can redirect to another website by entering a full address starting with https://. For pages on your own store, use the short form starting with /.
  • If you have many redirects, use the Import button on the URL redirects page to upload them from a CSV file.

Choosing the right destination

Where you send a broken link matters as much as fixing it. The aim is to put the shopper as close as possible to what they were looking for.

  • Product renamed or moved: redirect to the same product at its new address.
  • Product discontinued, with a replacement: redirect to the replacement. If the linen apron became the waxed cotton apron, send people there.
  • Product discontinued, no replacement: redirect to the collection it belonged to, such as /collections/kitchen-textiles, so the shopper sees similar items.
  • Blog post removed: redirect to a newer post on the same topic, or to your blog's main page.
  • Typo in someone else's link: redirect the misspelled address to the correct page.

Sending every broken link to your home page is quick, but the shopper who wanted a specific apron now has to start over. Use the home page only when nothing closer fits.

Avoid new 404s when you change a web address

The easiest 404 to fix is the one you never create. When you edit the web address of a collection, page or blog post in its Search engine listing section, Shopify offers a Create a URL redirect option. Shopify's help pages say it's ticked by default for pages and blog posts. Leave it ticked and the old address forwards to the new one.

Look for the same option when you edit a product's handle. If you don't see it, or you've already changed the address without it, add the redirect yourself using the steps above.

Two other habits help:

  • Change handles rarely. Shopify's own guidance is not to edit them too often. Each change is another old address to look after.
  • Redirect before you delete. When you remove a product for good, decide where its visitors should go and add the redirect the same day.

Fixing 404s with Ongoing SEO

If you'd rather not copy addresses between a report and the admin, Ongoing SEO's Broken Links page lets you fix each 404 from the list where you find it. Next to every broken link you can redirect it to your home page, to your all-products page, or to any address you type. You can also select several and redirect or dismiss them together.

The app creates normal Shopify URL redirects, so they appear in the same URL redirects list in your admin and keep working if you uninstall the app. A Redirects tab shows every redirect on your store, including ones you made elsewhere, and lets you delete old ones or download the list as a CSV.

Broken links are one item on a wider list. Our Shopify SEO checklist covers the rest, from meta descriptions to image alt text.

FAQ

What does a 404 error mean on Shopify?

It means someone visited an address on your store that doesn't match any page. Shopify shows your theme's "page not found" page. It usually happens after a product, page or collection is deleted, unpublished or given a new web address.

Do 404 errors hurt my Shopify SEO?

A 404 on its own doesn't damage the rest of your store. Google removes pages that return a 404 from its results over time. The cost is losing that page's place in search results and the value of links pointing to it, which a redirect to the right page helps keep.

Where are URL redirects in Shopify?

In your Shopify admin, go to Content > Menus and click View URL Redirects. From there you can create, edit, import, export and delete redirects.

Should I redirect all 404s to my home page?

Only when nothing closer fits. A shopper looking for a specific product is better served by that product's replacement or its collection. The home page makes them start their search again.

Why isn't my Shopify redirect working?

The most common reason is that a live page still exists at the old address. Shopify only applies a redirect when the old address would otherwise show a 404. Also check for typos in the Redirect from field and that the address isn't one Shopify blocks, such as /collections/all.

Do redirects made with Ongoing SEO stay if I uninstall it?

Yes. Ongoing SEO creates standard Shopify URL redirects, the same kind you make under Content > Menus, so they stay in your store after you uninstall the app.