Fix 404 errors

How to fix 404 errors in Google Search Console

Most 404s are harmless. Here’s how to find the few that cost you visitors or links, trace where Google found them, and fix them for good.

Explore the live demo →

5 days free · no card needed · ends on its own

Updated

To fix 404 errors in Google Search Console, decide for each URL whether it should exist. If the page moved, add a 301 redirect from the old URL to the new one. If it was removed on purpose and nothing replaces it, leave the 404 in place and remove any links to it from your own pages and sitemaps. Google says 404s don’t count against your site, so only the ones you link to yourself, list in a sitemap, or that used to get visits or backlinks are worth your time.

Short version: a 404 is a problem when you caused it (a broken internal link, a sitemap entry, a page that should exist) or when it throws away value (traffic, links). A 404 for a page you deleted on purpose, or for a URL someone else mistyped, is the correct answer.

What “Not found (404)” means in Search Console

“Not found (404)” is a reason under “Why pages aren’t indexed” in the Page indexing report (Indexing > Pages). Google requested the URL and your server answered with a 404 status, meaning the page doesn’t exist. Pages that return a 404 aren’t indexed, and URLs already in the index are removed once Google sees the 404.

Google’s own help page is clear that 404 responses are not necessarily a problem if the page was removed without a replacement, and recommends fixing only the 404s that you link to yourself or list in a sitemap. If the page moved, it recommends a redirect.

Do 404 errors hurt your rankings?

Not by themselves. Google’s Search Central team wrote that 404s are a normal part of the web and don’t count against you in search results. Google’s crawling documentation adds that 4xx errors (other than 429) have no effect on crawl rate. Missing pages don’t drag down the pages that still exist.

What 404s can cost you is indirect: visitors who hit a dead end from your own links, and the value of backlinks pointing at a page that’s gone. That is why the triage below is about where each 404 came from, not how many there are.

Which 404s to ignore and which to fix

SituationWhat to do
URL never existed (a typo in someone else’s link, a scraper, a hacked-site leftover)Ignore it. The 404 is correct.
You deleted the page, it had no visits or backlinks, and nothing replaces itLeave the 404 (or 410). Remove it from your sitemap and internal links.
The page moved or was renamed301 redirect the old URL to the new one, in one hop. The old URL then shows as Page with redirect, which is fine.
You deleted the page but it had traffic or backlinks, and a close equivalent exists301 redirect to that equivalent page.
Your own internal link or sitemap points at itFix the link or the sitemap entry. This is the 404 Google wants you to fix.
The page should exist but returns 404Fix the page: broken permalinks, a routing rule, a plugin conflict, a listing set to draft by mistake.
Hundreds of junk URLs with odd parameters or pathsUsually spam links or an old hack. A 404 or 410 is right; don’t redirect them.

Don’t redirect every 404 to your home page. Google’s John Mueller has said Google mostly treats those redirects as 404s anyway, and they confuse visitors. If there’s no real replacement, a helpful 404 page with search and links to your main sections is better.

How to find the page linking to a 404

Google finds 404 URLs through links: on your site, in your sitemaps, or on other sites. To find out which:

  1. Inspect the URL. Click a URL in the Not found (404) list, then Inspect URL. Expand Page indexing and look under Discovery: Sitemaps lists any submitted sitemap that contains it, and Referring page shows a page Google may have found it on. Google says the referring page is one it possibly used, so it can be old or missing (URL Inspection help).
  2. Filter the report to your sitemaps. Switch the Page indexing report from “All known pages” to “All submitted pages”. A 404 that appears there is in your sitemap, and the sitemap needs regenerating.
  3. Crawl your own site with a site crawler to list internal links that return 404. Fix them in the template, not page by page.
  4. Check Google Analytics. Visits to your 404 page, broken down by page referrer, show the links people actually click. A 404 that gets real visits is worth a redirect even if Google never mentioned it.
  5. Check backlinks. If other sites link to the dead URL, a redirect to the closest live page keeps those visitors and that link.

How to fix 404 errors, step by step

  1. Export the list. Open Indexing > Pages, click Not found (404) and export. The report shows up to 1,000 example URLs per reason.
  2. Group by pattern. Sort the URLs by path. Forty URLs under /old-blog/ are one decision, not forty.
  3. Decide per group using the table above: leave, redirect, fix the link, or restore the page.
  4. Add redirects at the server or CMS level, as permanent (301) redirects straight to the final URL. Avoid chains from earlier migrations.
  5. Fix your own links and sitemaps. Regenerate sitemaps so they contain only live, indexable URLs.
  6. Click Validate fix on the Not found (404) issue once the URLs you care about are fixed. Google rechecks them; it says validation typically takes up to about two weeks and sometimes longer.
  7. Expect some to stay. Google may keep recrawling an old URL for a long time because it still knows about it. A 404 that Google keeps listing, for a page you meant to delete, is not a problem to solve.

404 vs 410, soft 404 and blocked pages

StatusWhat it meansWhat Google does
404 Not foundThe page doesn’t existDrops it from the index; may recheck the URL later
410 GoneThe page existed and was removed on purposeGoogle treats 410 the same as 404; use whichever your platform supports
Soft 404The page says “not found” or is empty but returns 200Reported as Soft 404 and not indexed. See soft 404s.
403 / 401Access forbidden or login requiredReported as Blocked due to access forbidden (403) or unauthorized request (401)
Blocked by robots.txtGoogle isn’t allowed to crawl the URLReported as URL blocked by robots.txt. See blocked by robots.txt.

A 404 doesn’t mean Google or anyone else blocked you. It is your server saying the page isn’t there. If you can open the page in a browser but Google reports a 404, check whether the server answers bots differently, whether the URL in the report has a slightly different spelling or trailing slash, and run Test live URL in URL Inspection to see what Google gets today.

Removed listings on directory websites

On a directory most 404s come from listings and the pages built from them. Some decisions to make once, as rules, instead of URL by URL:

After a restructure, a sudden jump in Not found (404) almost always means old URLs weren’t mapped. That’s a migration problem, covered in the website migration checklist.

How DirectoryLens helps

For every other status in the Page indexing report, see the page indexing issues guide.

Questions

How do I fix 404 errors in Google Search Console?

Redirect URLs whose pages moved, fix internal links and sitemap entries that point to missing pages, restore pages that should exist, and leave the rest as 404. Then click Validate fix on the Not found (404) issue.

Do 404 errors hurt SEO?

No. Google says 404s are a normal part of the web and don’t count against your site. They only cost you when your own links send visitors to them or when a deleted page had backlinks or traffic.

Does a 404 error mean I was blocked?

No. A 404 means the server says the page doesn’t exist. Being blocked shows up differently in Search Console, as a 403 or 401 status or as blocked by robots.txt.

How do I get rid of a Google 404 error?

If the page should exist, fix it; if it moved, redirect it; if it is gone on purpose, leave it. Google drops 404 URLs from its index on its own, though it may keep listing them in the report while it rechecks old URLs.

What is the most common cause of a 404 error?

A link to a URL that no longer exists: a page deleted or renamed without a redirect, or a typo in the link. On directories, removed or renamed listings cause most of them.

What does a soft 404 error mean?

The page returns a 200 status but looks like an error or empty page, so Google treats it as not found. It’s fixed by returning a real 404 or adding real content. See the soft 404 guide.

Should I use a 404 or a 410?

Either. Google treats a 410 the same as a 404 for indexing, so use whichever your platform makes easy.

How long does it take Google to validate a 404 fix?

Google says validation typically takes up to about two weeks, and sometimes longer. Don’t click Validate fix again until the first validation has passed or failed.

Find the broken pages people actually reach.

Connect Search Console and Google Analytics, and DirectoryLens shows the 404s that get visits and where each one comes from.

Explore the live demo →

5 days free · no card needed · ends on its own