404 Not Found: When to Restore, Redirect, or Remove a URL
Direct Answer
Return 404 when a requested resource is not found; restore the page when it should exist, redirect only to a relevant replacement, or keep the 404 when removal is intentional.
Documentation
What this topic means
This documentation focuses on 404 Not Found. The practical context is When to Restore, Redirect, or Remove a URL. It defines the decision boundary and the preferred technical behavior. Adjacent failure states and broader workflows are covered by the related documents.
In practice, evaluate 404 Not Found on the live public response and compare at least one affected URL with a known-good example. Determine whether the behavior is isolated or generated by a shared route, template, component, proxy, or deployment rule.
Why it matters
Search crawlers make decisions from the response they actually receive. Status semantics, response content, and persistence of the error therefore matter more than what the application intended to return.
For 404 Not Found, the important distinction is between intended configuration and the state a crawler or user can actually fetch. Diagnose that gap before choosing a fix.
What to check
- Confirm the live behavior for 404 Not Found on a representative public URL and record the exact response or rendered evidence.
- Compare the affected case with a known-good URL so the difference is specific to 404 Not Found rather than an unrelated sitewide failure.
- Check the first response status and every redirect or upstream hop before the final page.
- Inspect the response body so a successful status is not hiding an error-like page.
Implementation guidance
Fix the response at the earliest layer that owns the failure: application, origin server, proxy, CDN, DNS, or access control. Preserve the correct HTTP semantics and do not hide an unavailable resource behind a misleading 200 response.
For 404 Not Found, make the intended behavior explicit at the layer that owns it and update generated internal references so new URLs do not recreate the old condition. If the behavior repeats across a template or route family, fix the shared source rather than patching individual pages.
Verify the result
Request the URL again without cached assumptions, capture the final status and body, and check whether the result remains stable across repeated requests. For server or network errors, confirm recovery in logs and from an external client.
The result is acceptable when the live URL consistently follows the intended 404 not found behavior, the related evidence is stable on repeated requests, and adjacent URLs or templates have not regressed.
Questions & Answers
What should be true after 404 Not Found is fixed or implemented?
The result is acceptable when the live URL consistently follows the intended 404 not found behavior, the related evidence is stable on repeated requests, and adjacent URLs or templates have not regressed.
Does this problem always cause a direct ranking loss?
No. Technical findings affect crawlability, rendering, consolidation, usability, or maintainability in different ways. Treat the finding as evidence to diagnose, not as a guaranteed ranking penalty.
Should the fix be made per URL or at a shared layer?
Use the narrowest layer that owns the behavior. If 404 not found repeats across URLs from the same template, route, proxy, or component, a shared fix is usually safer than many page-specific exceptions.
How should the change be tested?
Request the URL again without cached assumptions, capture the final status and body, and check whether the result remains stable across repeated requests. For server or network errors, confirm recovery in logs and from an external client.
Practical Check
- Confirm the live behavior for 404 Not Found on a representative public URL and record the exact response or rendered evidence.
- Compare the affected case with a known-good URL so the difference is specific to 404 Not Found rather than an unrelated sitewide failure.
- Check the first response status and every redirect or upstream hop before the final page.
- The result is acceptable when the live URL consistently follows the intended 404 not found behavior, the related evidence is stable on repeated requests, and adjacent URLs or templates have not regressed.