New: The $100M AI Visibility Roadmap, built from 7,960 live pages and 197 A/B tests. Get it free →

Home / Blog / 404 Errors and SEO: When to Redirect, Restore or Leave Them

Technical SEO · 10 min read

404 Errors and SEO: When to Redirect, Restore or Leave Them

404s are normal, but the rankings, links and sales a dead page used to earn are not. Here is how to find the 404s that matter and decide whether to redirect, restore or leave each one.

Robert Battle · Updated

Key takeaways
  • Google does not index URLs that return 404, drops them over time and treats 404 and 410 the same, so a 404 alone is not a penalty.
  • Fix a 404 only if the URL had traffic, backlinks or internal links; leave the rest alone.
  • Restore pages removed by mistake, 301 moved or replaced pages to the closest match, and never blanket redirect to the homepage.
  • Shopify only redirects URLs that are broken, allows up to 100,000 redirects (20,000,000 on Plus) and treats draft products as 404s.
  • Google recommends redirecting straight to the final URL and keeping redirects in place for at least a year.

404 errors do not hurt your SEO on their own: Google treats a 404 as the normal signal that a page no longer exists, drops the URL from its index over time and crawls it less often. The damage comes from what the dead URL used to do, such as rankings, backlinks, internal links and sales, so redirect a 404 when a close replacement exists, restore it when it was removed by mistake, and leave it when it never had value.

This guide is for Shopify and e-commerce teams looking at a pile of "Not found (404)" URLs in Search Console and wondering which ones matter. You'll get what Google actually says about 404s, how to find the ones worth fixing, a decision table for redirect, restore or leave, the exact rules for Shopify redirects, and a 404 page that keeps shoppers on your store.

Do 404 errors hurt SEO?

Not directly. Google's documentation on HTTP status codes says it doesn't index URLs that return a 4xx status, removes previously indexed 4xx URLs over time, and gradually crawls them less. Search Console's own help says a 404 is not necessarily a problem if you removed the page with no replacement. Every store with a changing catalog has some.

A 404 becomes an SEO problem in four situations:

  • The page ranked or got traffic. When it 404s, those rankings and clicks disappear with it.
  • Other sites link to it. Links that point at a dead URL stop helping your site. A redirect to a relevant page lets that link signal flow to the new URL.
  • Your own site links to it. Broken internal links waste crawls and send shoppers to a dead end.
  • It's a soft 404. A page that says "not found" or looks empty but returns a 200 status. Google excludes these from Search and reports them as errors.

Broken URLs build up faster than most teams expect. Pew Research Center checked a sample of just under 1 million pages from Common Crawl in October 2023 and found that a quarter of pages from 2013 to 2023 were no longer accessible.

Webpages that are no longer accessibleSample of just under 1 million pages from Common Crawl, checked October 2023
38%Pages from 2013gone a decade later
25%Pages from 2013 to 2023no longer accessible
8%Pages from 2023already gone

Source: Pew Research Center, When Online Content Disappears, May 2024

Links rot the same way. In the same study, 23% of news pages and 21% of government pages had at least one broken link, and 54% of Wikipedia pages had at least one broken reference link. If you have run a store for a few years, some of the sites that link to you point at URLs you have since changed.

Share of links that were broken, by type of siteLinks checked in spring 2023; Wikipedia figure covers reference links only
Wikipedia reference links11%
Government site links6%
News site external links5%
View the data
Value
Wikipedia reference links11%
Government site links6%
News site external links5%

Source: Pew Research Center, When Online Content Disappears, May 2024

404 vs 410 vs soft 404 vs redirect

The status code your server returns is what search engines act on. Here is what each one tells Google, based on Google's HTTP status code documentation.

ResponseWhat it meansHow Google treats itWhen to use it
404 Not FoundThe page does not existNot indexed; dropped over time; crawled less oftenRemoved pages with no replacement
410 GoneThe page was removed on purposeTreated the same as 404 (all 4xx except 429 are treated the same)Optional; no SEO advantage over 404 in Google's docs
Soft 404An error page that returns 200 OKExcluded from Search and flagged in Search ConsoleNever; return a real 404 or redirect instead
301 or 308Moved permanentlyA strong signal to process the target URL insteadA page with a clear replacement
302 or 307Moved temporarilyA weak signal that the target should be processedShort-term moves you will reverse

On Shopify, a product or page that doesn't exist returns a true 404. We checked on October 27, 2026 by requesting made-up product URLs on Shopify's Dawn demo store and on a live Shopify store; both returned HTTP 404, and the Dawn 404 page uses the title "404 Not Found." Soft 404s on Shopify usually come from elsewhere: empty collections, search pages with no results, or apps that render a "product unavailable" message on a 200 page.

How to find the 404 errors that matter

Don't try to fix every 404. Build one list, then rank it by what each URL used to be worth.

SourceWhere to lookWhat it tells you
Google Search ConsoleIndexing, then Pages: "Not found (404)" and "Soft 404"Dead URLs Google knows about, and false error pages
Search Console PerformanceFilter pages by the dead URLs, last 16 monthsClicks and impressions each URL earned before it broke
GA4Pages and screens report, filtered by your 404 page titleWhich dead URLs real visitors are still landing on
Site crawlAny crawler, checking internal linksBroken links on your own pages that you control
Backlink toolBroken backlinks or "best by links" reportsDead URLs that other sites still link to

Score each URL on three things: did it get clicks or impressions, does it have backlinks, and do internal links still point to it. A URL that scores zero on all three can stay a 404. Anything else goes to the decision table in the next section. Our Internal Link Checker helps with the third question, and our guide to crawl errors explains the rest of the Search Console report.

Revenue lost while one product page stays broken (illustrative example)Illustrative example: 1,500 organic sessions a month, 2% conversion rate, $80 average order value
$2,400 1 month $7,200 3 months $14k 6 months $29k 12 months
View the data
Value
1 month$2,400
3 months$7,200
6 months$14k
12 months$29k

Source: QCK illustrative calculation

Find the broken URLs that are costing you revenue

We benchmark your store against your top three competitors on Google and AI answers and list the prioritized technical fixes, with the revenue math for each.

Get my technical SEO plan →

Redirect, restore or leave it alone

Once you know what a URL was worth, the right fix usually follows. Use this table.

SituationBest fixWhy
Page deleted by mistake (theme change, migration, cleanup)Restore the same URLKeeps rankings, backlinks and internal links exactly as they were
Product renamed or URL handle changed301 to the new URLSame content, new address
Discontinued product with a close replacement301 to the replacementShoppers and search engines land on the nearest match
Discontinued product with no replacement, but a clear category301 to the most specific collectionThe collection still answers the search
Two posts or collections merged301 both to the merged pageGoogle says many-to-one is fine when content was merged
No traffic, no links, no replacementLeave it as a 404A redirect adds nothing; let it drop out
Junk or spam URLs you never createdLeave them as 404sThere is nothing worth keeping, and a 404 is the honest answer

When restoring beats redirecting

If the page still has demand and the content still applies, bring it back at the same URL. That is the only option that keeps everything the old page had. It is common after migrations and theme changes, when pages or blog posts go missing without anyone deciding to remove them. Our Shopify SEO migration guide covers how to catch these before launch.

Why the homepage is the wrong destination

Google's site move guidance warns against redirecting many old URLs to one irrelevant page such as the homepage, and says these blanket redirects may be treated as soft 404s. A shopper looking for a specific product who lands on the homepage has to start over. If no relevant page exists, an honest 404 is better than a misleading redirect.

How to redirect 404s on Shopify

Shopify has a built-in redirect manager under Content, then Menus, then URL redirects. Shopify's Help Center sets these rules:

  • You can only redirect broken URLs. If the old URL still loads a page, the redirect won't fire.
  • Draft and unpublished products count as broken. Setting a product to Draft, or removing it from all sales channels, makes its URL return 404, so a redirect will work.
  • Visible collections cancel redirects. If you hide a collection and redirect its URL, then make it visible again, Shopify deletes that redirect automatically.
  • Some paths are off limits. You can't redirect the fixed paths /products, /collections and /collections/all, collection tag URLs, or paths starting with /cart, /orders, /apps and a few others.
  • Limits are generous. Up to 100,000 redirects per store, or 20,000,000 on Shopify Plus.
  • Redirects apply across market subfolders set up with Shopify's international tools.

Step by step

  1. Export your dead URLs from Search Console's "Not found (404)" report and your backlink tool, and remove the ones that scored zero on traffic, links and internal links.
  2. Match each URL to the closest live page. Our free 404 Redirect Mapper suggests the nearest match for each broken URL and exports a redirect map. Review every suggestion by hand.
  3. Check that each target is final. Run the map through our Redirect Checker to catch targets that redirect again or return errors.
  4. Import the CSV. In URL redirects, choose Import, upload the file (Shopify provides a sample template), review and confirm.
  5. Test a sample live. Request 10 to 20 old URLs with the Redirect Checker and confirm each returns a single 301 hop to a page that returns 200.
  6. Update internal links in menus, product descriptions and blog posts so they point straight at the new URLs.
  7. Recheck in Search Console after a few weeks. Fixed URLs should move into "Page with redirect."

For a batch of changes, Shopify Flow also has a Create URL redirect action that can automate the step.

Discontinued and out-of-stock products

Product URLs cause most e-commerce 404s, and the right answer depends on whether the product is coming back.

  • Out of stock, coming back: keep the page live with a clear availability message, a restock sign-up and links to alternatives. Don't draft or delete it, because that turns it into a 404 and throws away its rankings.
  • Discontinued, with a successor: draft or delete the old product, then 301 its URL to the successor.
  • Discontinued, with no successor but a clear category: 301 to the most specific collection, not the homepage.
  • Discontinued, with real search demand on its own: consider keeping the page live as an informational page that says it's discontinued and recommends alternatives. This keeps the URL useful for shoppers who search the old product name.
  • Seasonal or one-off products with no traffic: let them 404.

Whatever you choose, make sure the product's structured data stays honest. If the page stays live, the availability in your schema should match what the page says. Our guide to product schema on Shopify explains how availability is marked up.

Clean crawl paths are step one of AI visibility

Our free $100M AI Visibility Roadmap, built from 7,960 live pages and 197 A/B tests, shows how to get cited by ChatGPT, Google AI Overviews and Perplexity.

Get the free roadmap →

Redirect mistakes that cost rankings

A bad redirect can be worse than the 404 it replaced. These are the patterns to avoid, drawn from Google's site move guidance.

  • Chains. Google recommends redirecting straight to the final destination. If you can't, keep chains to about three hops at most and never five or more. Every new redirect map should point old URLs at the current URL, not at an older redirect. Our guide to redirect chains shows how to flatten them.
  • Removing redirects too soon. Google advises keeping redirects for as long as possible, generally at least one year. On Shopify, with 100,000 slots, there is rarely a reason to delete them.
  • Blanket redirects to the homepage or a single "all products" collection, which can be treated as soft 404s.
  • Using 302s for permanent moves. Google reads a 302 as a weak signal, so the old URL may stay in the index longer.
  • Redirecting to pages that are noindexed, blocked in robots.txt or about to be deleted. The redirect ends at another dead end.

Build a 404 page that keeps shoppers

Some visitors will hit dead URLs no matter what you do. A good 404 page turns that into a second chance to sell. Google's guidance says custom 404 pages exist for users, should keep your site's look and navigation, and must still return a real 404 status so they don't get indexed.

On Shopify, the 404 page is a template in your theme, which you can edit in the theme editor. Add:

  • A short, plain message that the page has moved or no longer exists.
  • A search bar, since shoppers often know what they wanted.
  • Links to your best-selling collections and products.
  • A link to the homepage and to customer support.

Then confirm it still returns a 404 status with the Redirect Checker or any HTTP header tool. A 404 page that returns 200 is a soft 404.

A monthly 404 routine

404s are maintenance, not a one-time project. Once a month, open the Search Console Page indexing report, export new "Not found (404)" and "Soft 404" URLs, score them on traffic, links and internal links, and redirect or restore the ones that matter. Add a redirect check to every catalog cleanup, theme change and migration. For a wider view of crawl health, our technical SEO audit checklist covers the rest.

If your store has thousands of broken URLs after a migration or replatform, our technical SEO team can help you map them. Get in touch and we'll show you which ones are worth recovering first.

Have a pile of 404s after a migration?

Book a free 30-minute call. We'll show you which pages are ready to move, the fixes to make first and the revenue behind them.

Get my custom plan →
FAQ

Questions & answers

Do 404 errors hurt SEO?
Not on their own. Google treats a 404 as a normal signal that a page is gone. The harm comes when the dead URL had rankings, backlinks or internal links, which a relevant 301 redirect or a restore can recover.
Should I redirect all 404s to my homepage?
No. Google warns that redirecting many old URLs to one irrelevant page such as the homepage may be treated as a soft 404. Redirect to the closest relevant page, or leave the 404.
Is a 410 better than a 404 for SEO?
Google's documentation says all 4xx errors except 429 are treated the same, so a 410 has no documented advantage. Use whichever your platform supports.
What is a soft 404?
A page that looks like an error or is empty but returns a 200 OK status. Google excludes soft 404s from Search and flags them in Search Console. Return a real 404 or redirect to a relevant page.
Why isn't my Shopify redirect working?
Shopify only redirects URLs that are broken. If a product, page or collection still loads at the old URL, the live page wins. Draft or delete the old item, or hide the collection, and the redirect will work.
Free custom plan

Find the revenue you're leaving on the table

A free 30-minute call where we build the first version of your plan with you. You leave with a plan either way.

  • Your score across Google, AI citations, branded demand, and reviews
  • The pages on your site that are ready to move right now
  • Your first Flagship page and the first three tests we'd run

Step 1 of 3

Get your free custom plan

Free. Takes about 30 seconds.