How to Fix 404 Errors Without Losing Rankings

Quick answer: A 404 error means a page no longer exists at its URL. Fix it by deciding what each broken URL should become: restore the page if it still matters, 301-redirect it to the closest matching live page if it doesn’t, and update every internal link that pointed to it. Never redirect all 404s to the homepage, and never ignore 404s on pages that used to rank — that is how rankings quietly disappear.

A 404 error is not a penalty. Google does not punish a site for having broken pages. But every 404 is a dead end: a visitor who hits one leaves, a link that points to one wastes authority, and a page that used to rank but now returns 404 loses its position entirely. Fixing 404s properly is one of the highest-return technical SEO jobs on any site.

What a 404 error actually is

When a browser or a crawler asks your server for a URL that does not exist, the server answers with the HTTP status code 404 — “Not Found”. The page is gone. The server is saying: I understood the request, but there is nothing here.

404s appear for ordinary reasons:

  • A page was deleted — a product discontinued, a blog post removed, a service page taken down.
  • A URL was changed — a slug edited, a category renamed, a site restructured — without a redirect.
  • A link was typed wrong — a typo in an internal link, a partner linking to an old URL, a bookmark to a moved page.
  • A migration went wrong — a redesign or platform move that changed URL patterns and left old URLs pointing nowhere.

A small number of 404s is normal on any site. The problem starts when important pages — pages with traffic, links or rankings — return 404, or when 404s pile up in the hundreds because of a broken migration.

Why 404 errors hurt SEO

A single 404 on an unimportant page costs nothing. The damage comes from three places:

1. Lost rankings

A page that ranked for a keyword and now returns 404 will drop out of the results. Google cannot rank a page that does not exist. If the page had years of history and links, all of that value is gone unless you redirect it.

2. Wasted link authority

Links pointing to a 404 page pass no value to your site. A backlink from a respected site to a dead URL is a wasted vote. The same goes for internal links: every internal link to a 404 is a signal telling Google that a page matters — a page that no longer exists.

3. Bad user experience

A visitor who clicks a link and lands on an error page usually leaves. That is a lost conversion, and on a large scale it is a trust problem. A site full of dead ends looks abandoned, and users treat it that way.

Google itself is relaxed about 404s in general — its own documentation says 404s on URLs that were never meant to exist are fine. What matters is which URLs return 404, and whether those URLs used to matter.

Step 1: Find all your 404 errors

You cannot fix what you cannot see. Find the full list before you touch anything.

  1. Google Search Console. Go to Pages under Indexing and look for “Not found (404)”. Export the full list. This shows the 404s Google has actually tried to crawl — the ones that matter most.
  2. Crawl the site. Run Screaming Frog, Ahrefs Site Audit or a similar tool and filter for 404 responses. A crawl finds 404s Google has not discovered yet, including broken internal links.
  3. Check your server logs. Look for URLs returning 404 that receive real traffic or have external links pointing to them. Your analytics tool can show landing pages that no longer exist.
  4. Check backlinks. In Ahrefs or Semrush, look for external links pointing to 404 pages on your site. These are the highest-value 404s to fix, because each one is a vote being wasted.

Combine the lists into one spreadsheet with columns for the URL, where it was found (Search Console, crawl, backlinks), whether it has traffic, and whether it has links. That sheet is your fix list.

Step 2: Sort the 404s into three groups

Not every 404 deserves the same fix. Sort each URL into one of three groups:

Group A: Restore the page

The page still matters — it had traffic, rankings or links, and the content is still relevant. The right fix is to bring the page back at the same URL, with the same or improved content. This is always the first choice when the content is still valid, because a restored page keeps its full history.

Group B: Redirect to a matching page

The page is gone for good, but a close equivalent exists — a replacement product, an updated guide, a newer version of the same article. The right fix is a 301 redirect to that equivalent page. The redirect passes most of the old page’s authority to the new one.

Group C: Leave it as 404

The URL never mattered — a mistyped link, an old test page, a tag page with one post, a URL nobody linked to and nobody visits. The right fix is nothing. A clean 404 is the correct answer for a URL that should not exist. Do not redirect these, and do not try to “fix” them.

This sorting step is where most 404 fixes go wrong. Redirecting everything to the homepage, or redirecting Group C URLs to random pages, creates soft 404s and confuses Google. Be deliberate.

Step 3: Restore the pages that still matter

For Group A, restoration is straightforward:

  1. Recreate the page at the exact same URL — same slug, same path. If the URL changed, the old URL still 404s, so the restoration must use the original URL.
  2. Restore or improve the content. If you have a backup, use it. If not, rewrite the page to cover the same topic at least as well as before.
  3. Rebuild its internal links. Link to the restored page from the same places that linked to it before — the category page, related posts, the homepage if it was featured.
  4. Submit it for indexing. Use the URL Inspection tool in Search Console and click Request Indexing. Then check the Page Indexing report over the next few weeks to confirm it is back in the index.

A restored page usually recovers most of its old rankings within a few weeks, because Google remembers the URL’s history. That is why restoration beats redirection whenever the content is still relevant.

Step 4: Redirect the pages that are gone for good

For Group B, set up a 301 redirect — permanent, not 302 — from the old URL to the closest matching live page.

The matching rule

The redirect target must be genuinely related. Match by topic, not by convenience:

  • A deleted product page → the closest product in the same category, or the category page itself.
  • An old blog post → the updated version of the same guide, or a newer post on the same topic.
  • A renamed service page → the new service page.
  • A merged page → the page it was merged into.

What NOT to do

  • Do not redirect everything to the homepage. Google treats a redirect to an unrelated page as a soft 404 — it does not pass authority, and the old page is still effectively dead. A homepage redirect is only correct when the homepage genuinely is the closest match, which is rare.
  • Do not create redirect chains. The old URL should redirect directly to the final live URL in one hop, not through two or three intermediate URLs. Chains waste crawl budget and dilute the authority passed on. See our guide: Demystifying 301 Redirect Loops & 404 Penalties.
  • Do not redirect to a page that also 404s. Check the target returns 200 before you set the redirect.
  • Do not use 302 redirects for permanent moves. A 302 tells Google the move is temporary, so the old URL stays in the index and the authority does not transfer.

How to set up the redirects

On WordPress, a redirection plugin (such as Redirection) lets you add 301s from the admin without touching server files. On Apache servers, the rules go in .htaccess; on Nginx, in the server block. However you do it, test each redirect after setting it up: open the old URL in a browser and confirm it lands on the right page with a 301 status.

Step 5: Fix the links that point to 404s

Redirects are a safety net, not a fix. Every link that points to a 404 should be updated to point at the live URL directly:

  1. Internal links. Crawl the site again and export every internal link pointing to a 404. Update each one to the restored or redirect-target URL. Internal links that go through a redirect waste crawl budget and pass less authority than direct links. See our Internal Linking Strategy for SEO for the full approach.
  2. Sitemap. Remove every 404 URL from your XML sitemap. A sitemap full of dead URLs teaches Google to distrust it.
  3. External links you control. Update the URL on your social profiles, directory listings, guest posts and partner sites where you can. For links you cannot control, the 301 redirect is your safety net.
  4. Navigation and footer. Check menus, category pages and footer links — a 404 hiding in the navigation is linked from every page on the site.

Step 6: Make your 404 page useful

Some 404s are unavoidable — users mistype URLs, old links circulate forever. A good 404 page turns a dead end into a second chance:

  • Say clearly that the page is missing, in plain language, not jargon.
  • Offer a search box so the visitor can find what they were looking for.
  • Link to your most popular pages — the homepage, the main category pages, the best guides.
  • Keep the site’s design and navigation so the visitor can keep browsing instead of bouncing.
  • Return a real 404 status code. This is critical: the page must return HTTP 404, not 200. A “soft 404” — an error page that returns 200 — tells Google the URL is a real page, and Google may index your error page.

Test the 404 page yourself: open a URL that does not exist and check what it looks like and what status code it returns.

Step 7: Monitor and prevent new 404s

Fixing 404s once is not enough. Set up a routine so they do not pile up again:

  • Check Search Console monthly for new 404s in the Page Indexing report.
  • Crawl the site after every redesign, migration or bulk content change and fix new 404s within days, not months.
  • Make redirects part of every URL change. Any time a slug, category or page URL changes, the redirect is created in the same step — never as an afterthought.
  • Monitor backlinks for new links pointing to dead URLs and redirect them promptly.
  • Run the full audit order in our Technical SEO Audit Checklist 2026 quarterly, so 404s are caught as part of the regular routine rather than discovered by accident.

How long does recovery take?

After a proper fix, expect results in days to a few weeks:

  • Restored pages usually reappear in the index within a week or two, and rankings often recover most of the way within a month.
  • Redirected pages pass authority within a few weeks, but the target page may take a month or more to gain the old page’s full position.
  • Pages left as 404 drop out of the index gradually — that is expected and correct.

If a restored or redirected page has not recovered after 6 weeks, check the basics: is the redirect still in place, does the target return 200, are the internal links updated, and is the page in the sitemap? One broken link in the chain is usually the cause.

FAQ

Do 404 errors hurt my Google rankings?
Not directly — Google does not penalize a site for having 404s. The damage is indirect: a page that used to rank and now returns 404 loses its position, and links pointing to dead URLs pass no authority. Fix 404s on pages that matter; ignore the rest.

Should I redirect all 404s to the homepage?
No. Google treats redirects to unrelated pages as soft 404s, so the authority does not transfer. Redirect each dead URL to the closest matching live page, restore it if it still matters, or leave it as a clean 404 if it never mattered.

What is the difference between a 404 and a soft 404?
A 404 returns the HTTP status code 404 — the server says the page does not exist. A soft 404 is a page that looks like an error page but returns a 200 status code, telling Google it is a real page. Soft 404s are worse, because Google may index your error page. Always make sure error pages return a real 404.

How many 404 errors are acceptable?
There is no fixed number. A handful of 404s on unimportant URLs is normal on any site. It becomes a problem when important pages — pages with traffic, links or rankings — return 404, or when a migration creates hundreds of them at once. Focus on the important ones.

Will a 301 redirect recover all of a dead page’s rankings?
Most of them, usually — a 301 passes the majority of the old page’s authority to the target. But the target page must be genuinely related and at least as good as the old one. A redirect to a weak or unrelated page will not recover the old rankings, no matter how correctly it is set up.

Related guides: How to Fix ‘Discovered – Currently Not Indexed’ in Google Search Console (2026).

Leave a Reply

Your email address will not be published. Required fields are marked *