Knowledge hub
410 vs 404 vs 301: what to return for a removed page
When a page goes away, the status code you return is your message to search engines. The three common choices send different messages, and picking one on purpose avoids confusion.
Key takeaways
- Google treats 404 and 410 the same way and drops such URLs from the index over time.
- Use a 301 only when a genuine replacement exists.
- Redirecting retired pages to the home page is usually counterproductive.
- Make sure removed pages return a real error status, not a soft 404.
What each code means
- 404 Not Found. The server cannot find the URL. It does not say whether the absence is deliberate or temporary.
- 410 Gone. The resource was here and has been intentionally removed.
- 301 Moved Permanently. The resource has a new address, and the old one should be replaced by it. A 308 behaves similarly for this purpose.
How Google treats 404 and 410
Google's documentation on HTTP status codes says it treats 404 and 410 the same way, as 4xx errors, apart from the special-case 429. URLs that return these codes are dropped from Search: the indexing pipeline removes a URL from the index if it was previously indexed. Newly encountered 404 pages are not processed, and crawling of them gradually decreases.
This means that, for Google, the choice between 404 and 410 is mostly about clarity for your team and for other systems. Some site owners prefer 410 because it records intent. Google does not document a faster removal for 410, and we do not promise one. Other search engines or crawlers may treat the two differently, so verify each engine.
When a 301 is right
A permanent redirect is appropriate when there is a direct replacement: a product replaced by its successor, an article moved to a new URL, an old domain mapped page by page to a new one. Google's redirect documentation describes permanent redirects as a strong signal that the target should become canonical. That makes them the right tool for consolidation, not for removal.
A redirect is not the same as deindexing. The old URL stops being the preferred result, and the destination takes its place. That is usually what you want when content has moved. It is not what you want when content has been withdrawn.
When a 301 backfires
Redirecting removed pages to the home page, or to a loosely related category, is common and often counterproductive. A redirect to something unrelated gives search engines no useful equivalence and visitors no useful destination. Search engines can treat such redirects as soft errors, which means the URL is handled as if it were gone anyway. If there is no true replacement, use 410 or 404 and, if useful, a helpful custom error page that suggests where to go next.
Redirect chains and loops are another issue. Each hop adds delay and can reduce the chance that signals are passed on. Point old URLs directly to final destinations.
Soft 404s
A page that says "not found" in its text but returns a 200 status is a soft 404. It tells the server layer that everything is fine while telling the reader the opposite. Search engines may eventually detect it, but you should not rely on that. Make sure removed pages return a real error status. Custom error pages are fine as long as the status code is right.
Choosing quickly
- Direct replacement exists: 301 to the replacement.
- Content retired, no replacement: 410, or 404 if your platform cannot do 410.
- Content live but should not be listed: keep 200 and use noindex.
- Content temporarily unavailable: a 503 can signal temporary unavailability, but a long-lasting 503 will not keep a URL in place indefinitely.
- Content private: require authentication.
Implementation tips
- Apply 410 rules to precise patterns, such as an exact path prefix, so you do not catch live URLs.
- Test after deployment, from outside your network, and in more than one engine's tools.
- Remove the dead URLs from sitemaps and internal links, or you keep advertising them. See sitemap cleanup for deindexing.
- Keep the status in place. If a deployment restores old files, the pages return.
- For urgent cases, pair the status code with a temporary request in the Removals tool.
Considerations for migrations
During a site move, you will use a mix: 301s for pages with equivalents, 410s for retired content. Google's site move guidance covers the mechanics. Our post-migration cleanup service audits whether the mix is right.
Timing
In all cases, the removal happens when the page is recrawled. We do not give dates. For realistic expectations, read how long deindexing takes.
If you have a list of removed pages and need the right response for each, request a quote.
Related reading
- Post-migration cleanupRemove old domains, URL structures and leftovers after a site move.
- Hacked-site spam URL cleanupClear injected spam pages out of search results after a compromise.
- noindex vs robots.txt vs 410Which removal method to use, and which one backfires.
- Page deindexingTake individual URLs you control out of Google and Bing results.