A 404 is not a Google punishment: it is an HTTP response. It means the requested URL does not exist. The problem is not the code, but what happens afterwards: if you redirect everything to the homepage, if you return a 200 with an empty page or if you let internal links point to nothing.

Well used, a 404 protects the quality of the index and can turn a broken URL into an opportunity. Badly used, it multiplies junk pages and loses signals that took years to earn.

This guide separates the technical error from the editorial decision: when a 404 is correct, when a 301 applies and how to keep a dead URL from becoming a bigger problem.

01Quick summary

  • Correct 404The URL no longer exists and there is no equivalent page. You respond 404 and offer a useful way out.
  • 410The resource has been removed permanently. It is a more explicit signal, but not mandatory.
  • 301Only if a real replacement exists. Redirecting everything to the homepage is not a solution: it is a disguised 404.
  • Soft 404Returning 200 with an empty page or a “not found” message is worse than an honest 404.
  • MonitoringSearch Console, logs and crawling to find broken URLs and the internal links that feed them.
  • LimitA 404 does not recover rankings on its own. It tidies the index; it does not replace content or authority.

02What a 404 is and what it is not

The server responds 404 when it cannot find the resource. It is a normal HTTP response, not a default configuration error. What Google does with it is remove the URL from the index once it confirms that the URL does not exist.

It is not the same as:

  • 410 Gone. The resource existed and has been removed definitively. Google may treat it as a clearer removal.
  • 301 permanent. The URL changed and there is an equivalent destination. The signal is preserved toward the new destination.
  • 302 temporary. The resource will return. It is not used to reorganize URLs permanently.
  • Soft 404. The server returns 200, but the content is a “not found” message, an empty page or a JavaScript redirect. It is a confusing signal.

The custom 404 page does not change the code: it can be useful for the visitor, but the server must keep responding 404. If it responds 200, the problem is still there.

The quick test

Request a URL that does not exist and check the response code, not just what you see on screen. If it returns 200, you have a soft 404.

03When a 404 is correct

A 404 is the honest answer when the URL no longer represents anything and there is no better equivalent:

  • A product or service retired with no replacement.
  • An old campaign that no longer exists.
  • A URL with a typo that was never valid.
  • Content removed by editorial decision, with no replacement.
  • Parameters or internal paths that should not be indexed.

It is not correct when:

  • The URL changed and the content still exists: a 301 to the new destination applies.
  • The page is down temporarily: a 503 applies, not a 404.
  • The content has been merged with other content: 301 to the page that absorbs it.
  • It is a legal page, a contact page or a main URL of the site: a 404 there is an architecture failure.

04How to turn a broken URL into an opportunity

The work starts with knowing what is broken and why. Search Console, the server logs and your own crawl give you the list; the judgment comes afterwards.

What to do depending on the URL type
Case Response Check
Old URL with an equivalent page 301 to the real destination That the destination returns 200 and is relevant
Content removed with no replacement 404 or 410 That no internal links remain pointing there
Discontinued product 301 to category or 404 That the category is not a generic drawer
URL with parameters or duplicated Canonical or 404 That the variant is not being indexed
External typo 404 with useful search That the 404 page offers real navigation

Then:

  • Update the internal links. A 404 linked from the menu or the footer is a recurring problem.
  • Review the sitemap. It must not include dead URLs or redirects.
  • Design a useful 404. Search box, links to the main sections and a clear message. Without turning it into a duplicated homepage.
  • Check the destination. A 301 to another 404 only moves the problem.
  • Document the decision. 301, 410 or 404; and why. The next person should not have to guess.

If the volume of URLs is high or there is a migration behind it, the technical SEO service sorts the inventory and the redirects; the WordPress audit documents the state before touching anything.

05Errors and limits

  • Redirecting everything to the homepage. It is the most common error. Google reads it as a soft 404 and the visitor lands where they were not looking.
  • Returning 200 on the 404 page. The content says “not found”, but the code says “it exists”. Contradictory signal.
  • Using 302 for permanent changes. The signal keeps pointing to a URL that is no longer the right one.
  • Blocking the 404 in robots.txt. Google needs to see the code to remove the URL; blocking it can prolong the problem.
  • Leaving the sitemap with dead URLs. You send Google exactly to where there is nothing.
  • Not reviewing the internal links. The 404 reappears every time someone navigates from the menu.
  • Promising to recover rankings with a 404. The 404 cleans; it does not return authority on its own.

The honest limit: a well-managed 404 prevents losses and tidies the index, but it does not create content or recover a ranking that depended on the deleted page.

06Frequently asked questions

Does a 404 hurt SEO?

A correct 404 does not penalize by itself. The damage comes from soft 404s, broken internal links and redirecting everything to the homepage without criteria.

Is 404 or 410 better?

410 is more explicit when content is removed for good. 404 is reasonable when there is no certainty or the URL may come back. Google treats them similarly; the difference is in the intent.

Can I redirect all broken URLs to the homepage?

It is not a good practice. It turns any URL into a generic redirect and can generate soft 404s. You only redirect when an equivalent destination exists.

How do I find my broken URLs?

With Search Console, the server logs and your own crawl. Then they are grouped by type and you decide 301, 410 or 404. The WordPress audit can give you the inventory and the priorities.

How long does Google take to remove them?

It depends on crawling and on the URL. No deadline is promised. What you can control is the correct response, the internal links and the sitemap.