Real fixes from seven live sites. No pitch.Log in / My reports
Idea to Traffic Pressure Test

Site Down or Returning 404 for a Day: Will Google Deindex Your Pages?

Usually not, if you fix it quickly. Google keeps indexed pages through short 5xx outages and only drops URLs that keep erroring, while 404 and other 4xx codes tell Google the page is gone, so those pages can start falling out over days. Get every important URL back to 200, check robots.txt, and request indexing for your top pages.

A bad deploy, an expired domain, a DNS change that went sideways: sooner or later every new site spends a few hours or a day broken. The first question people ask once it is back up is whether Google has already thrown their pages out. The answer depends far less on how long the outage lasted and far more on which HTTP status code your server returned while it was down.

The status code decides, not the clock

Google publishes how its crawlers treat each response class in its HTTP status code documentation (last updated February 2026). The short version, in plain terms:

  • 5xx errors (500, 502, 503) and 429: Google reads these as "the server is struggling, try later." It slows its crawl rate, ignores any content in the error response, and keeps already indexed URLs in the index for a while. Only URLs that persistently return server errors are eventually dropped. When the server returns 200 again, Google gradually speeds crawling back up.
  • 4xx errors (404, 410, 403 and the rest, except 429): Google reads these as "this content does not exist." Indexed URLs that return a 4xx are removed from the index over time, and crawl frequency for those URLs gradually decreases. Google says all 4xx codes other than 429 are treated the same way, so 410 is not a faster delete button than 404 in any way it documents.
  • 200 with an error page in it: the worst of both. Google may index the error text, or flag the URL as a soft 404 in Search Console.

So a site that returned 503 for eight hours is usually in better shape than a site that returned 404 for two hours, because the 503 told Google to wait and the 404 told Google the pages were gone.

The short grace period for important URLs

On November 5, 2026, Search Engine Roundtable reported a LinkedIn comment from Google's Gary Illyes about the VLC media player site, which had been returning a 4xx code. Illyes said Google had temporarily protected that URL from falling out of the index right away, because it is an important page. The side effect: Google showed only the link and the last good title, with no snippet and no favicon, until the page returned 200 again.

Two things to take from that. First, Google does not always drop a 4xx page the instant it sees the error, so a short accident is rarely instant death. Second, nobody outside Google knows how long that protection lasts or how "important" a page must be to get it. A two-month-old utility site should not plan around being treated like VLC. Treat the grace period as luck, not a strategy.

Find out what your site actually returned

Do not guess. Most people assume their site was "down," but the real response is often something else entirely. Check three places:

  1. Search Console, Settings, Crawl stats, Open report. Look at "By response" for the outage dates. A jump in "Server error (5xx)" is the gentle case. A jump in "Not found (404)" is the one to fix fast. If the report shows host status problems, click into "Host status" to see whether robots.txt fetching or DNS resolution failed.
  2. Your host's logs. On Cloudflare Pages, open Workers and Pages, pick the project, then Deployments. A failed or empty deploy shows up there with its timestamp, which tells you exactly how long the bad version was live.
  3. A live check of the URLs that matter. Run this from a terminal against the URLs in your sitemap:
curl -s https://example.com/sitemap.xml \
  | grep -o '<loc>[^<]*' | sed 's/<loc>//' \
  | while read u; do
      printf '%s %s\n' "$(curl -s -o /dev/null -w '%{http_code}' "$u")" "$u"
    done | sort | uniq -c -w 3

Every line should start with 200. Anything else is a page Google is seeing as broken right now, regardless of what your browser shows you from cache.

The robots.txt trap during an outage

One file matters more than any page during downtime: robots.txt. Under Google's robots.txt rules, a 404 for robots.txt means "no restrictions," so crawling continues. A 5xx for robots.txt is different: Google stops crawling the whole site for a while, and if the error persists it falls back to the last copy it had. That pause is harmless for a few hours, but if your host serves a 5xx for robots.txt for days, Google crawls nothing, including the fix you just shipped.

The opposite mistake is worse. If a broken deploy replaced robots.txt with a file containing Disallow: /, Google stops crawling everything and pages can start losing their snippets. After any incident, open https://yourdomain.com/robots.txt in a private window and read it line by line.

Recovery steps, in order

  1. Get every important URL back to 200 with its real content. On Cloudflare Pages, the fastest route is Deployments, find the last good deploy, open its menu and choose "Rollback to this deployment." That restores the old build in seconds without a new build. If a direct upload replaced your site with a partial folder, see our guide on a wrangler deploy that replaced the whole site.
  2. Confirm robots.txt and sitemap.xml return 200 and contain what you expect.
  3. Use URL Inspection on your top five pages. Click "Test live URL." If the live test passes, click "Request indexing." Do this for the handful of pages that bring most of your traffic, not all of them. Google rate limits manual requests, and the sitemap handles the rest.
  4. Resubmit the sitemap in Search Console under Indexing, Sitemaps. It will not force a recrawl, but it nudges Google to look again at URLs with a recent lastmod date.
  5. Watch Pages report changes for one to two weeks. Under Indexing, Pages, a temporary rise in "Not found (404)" or "Server error (5xx)" should shrink as Google recrawls. If URLs moved to "Crawled, currently not indexed" after the outage, give them time; Google's own help text now says that status does not necessarily mean something is wrong.

For a small site, a few hours of 404s usually recover within days once pages return 200. A week or more of 404s can mean waiting for Google to rediscover and reindex each page, which on a low-authority site can take weeks.

Plan the next outage so it costs nothing

If you know downtime is coming, such as a migration or a host change, serve a 503 with a Retry-After header for the duration, not a 404 and not a 200 "we will be right back" page. A minimal Cloudflare Pages Function at functions/_middleware.js does it:

export async function onRequest() {
  return new Response("Down for maintenance", {
    status: 503,
    headers: { "Retry-After": "3600" }
  });
}

Remove the file and redeploy when you are done. Keep planned 503 windows short, ideally hours, not days, because Google says persistently erroring URLs are eventually removed.

Also set up something that tells you the site broke before Google does. A free uptime monitor that checks your home page and one deep page every five minutes catches most bad deploys within minutes. Checking a deep page matters: a broken build often leaves the home page working and every other URL returning 404.

Once things are stable, run your URL through the free Site Checker to confirm status codes, robots.txt and canonical tags are back where they should be.

Where this question came from

Questions about outages, 404s and deindexing

How long can my site be down before Google deindexes it?

Google does not publish a fixed number. With 5xx errors, indexed pages are kept for a while and only dropped if errors persist, so a few hours or a day is normally safe. With 404s, removal can begin sooner, though Google sometimes briefly protects important URLs.

Is 503 better than 404 during maintenance?

Yes. A 503 tells Google the outage is temporary and slows crawling, while a 404 says the page no longer exists. Add a Retry-After header and keep the window short.

Should I request indexing for every page after an outage?

No. Fix the site, resubmit your sitemap, and use URL Inspection's Request indexing only on your most important handful of pages. Google recrawls the rest on its own.

Is a 410 removed faster than a 404?

Google's documentation says all 4xx codes other than 429 are treated the same: the content is considered not to exist. Use 410 when a page is gone for good, but do not expect a documented speed difference.