When Should You Use a 404 Page Instead of Redirecting a Removed URL?

Decide whether to keep, redirect, or return 404 or 410 for a removed page, with practical examples and HTTP checks for website owners.

Published
Reading time
6 min read
When Should You Use a 404 Page Instead of Redirecting a Removed URL?
On this page

When deciding between a 404 or redirect for a removed page, start with the visitor’s intent: is there a page that genuinely serves the same purpose? If not, a useful error page is usually more honest than sending everyone to the homepage. This guide covers how to choose among keeping the page, returning an error, and redirecting it.

Key Takeaways

  • Keep a page live when its content still has value and can be maintained accurately.
  • Use a permanent redirect when a clear, relevant replacement exists.
  • Return 404 when the page is unavailable and there is no suitable replacement; use 410 when you know the removal is permanent.
  • Don’t redirect unrelated removed URLs to the homepage simply to avoid errors.
  • Check the actual HTTP response, not just what the page looks like in a browser.

Choose a response based on the visitor’s goal

SituationRecommended responseWhy
The original content remains usefulKeep the page and return 200Visitors can still find what they requested. Update outdated information.
The content has moved or has a close replacementRedirect permanently, typically with 301 or 308Visitors reach the resource that fulfills the original request.
The content is gone and there is no close replacementReturn 404The server clearly communicates that the resource is unavailable.
You know the content has been permanently removedReturn 410This explicitly indicates that the resource is gone permanently.

A 404 does not necessarily mean the absence is permanent. A 410 expresses that the removal is intended to be permanent. Neither status guarantees how quickly a search engine will update its index.

If a page is temporarily unavailable, consider whether it should remain live with an explanatory notice instead. A temporary redirect may also be appropriate when there is a relevant temporary destination. Avoid describing a permanent removal as temporary just to retain the URL.

Advertisement

When to keep the page

Keep the URL and return 200 OK if the page still answers a legitimate question and you can make its status clear. For example:

  • A discontinued product page can remain useful for existing owners looking for specifications or support. Clearly label the product as discontinued and remove or disable purchasing options if it is no longer for sale.
  • An older article may remain useful as an archive. Add the publication or review date and correct material inaccuracies rather than presenting obsolete guidance as current.

Keeping a page is not appropriate merely because it once attracted links or traffic. If its content is misleading, cannot be maintained, or must be removed, choose a relevant replacement or an error response instead.

When to redirect a removed URL

Use a permanent redirect when the destination is a meaningful substitute for what the visitor requested. Common examples include:

  • Relocated resource: A setup guide moves from /help/setup to /docs/setup, with equivalent instructions at the new address.
  • Consolidated article: Two substantially overlapping articles are combined into one comprehensive guide that answers the original articles’ questions.
  • Replacement product: A discontinued product has a direct successor that serves essentially the same need. Make the change clear on the destination page.

A 301 or 308 indicates a permanent redirect. For ordinary page moves, 301 is a common choice. A 308 also preserves the HTTP method, which matters if non-GET requests might reach the old URL. Test the behavior of your application and infrastructure before changing redirects for such endpoints.

Redirect directly to the final destination where possible, rather than through a chain of intermediate URLs. Check whether query parameters need to be retained, discarded, or mapped for the destination; do not assume every parameter is safe or meaningful on the new page.

Why not redirect every removed URL to the homepage?

A visitor requesting a specific article or product can arrive at the homepage without an explanation and have to start the search again. Search engines can also have difficulty treating an unrelated homepage as a replacement for the requested resource; an irrelevant redirect may be interpreted as a soft 404 rather than a meaningful move.

A custom 404 page can still link to the homepage, search, or a relevant category. The difference is that the requested URL returns the appropriate error instead of pretending that an unrelated page is its replacement.

Advertisement

When to return 404 or 410

Use 404 Not Found when the resource is unavailable and there is no relevant equivalent. Use 410 Gone if you know the removal is permanent and want the response to say so explicitly. Either is preferable to an unrelated redirect when no useful replacement exists.

For example, if a deleted opinion article has no equivalent elsewhere, return 404 or 410. A custom error page can briefly explain that the page is unavailable and offer links to browse related topics. Make sure the server still returns the error status: an error message delivered with 200 OK can be treated as a soft 404.

For a discontinued product with no direct successor, you have two reasonable options: retain an accurate product page for owners, or remove it and return 404 or 410. A broad category page may be a useful link on the error page, but it is not automatically a suitable redirect target.

Check your implementation

Inspect a sample of affected URLs after deploying changes. Replace the illustrative URL below with one you control:

curl -sS -o /dev/null -D - https://www.example.com/old-page

For a removed page, inspect the first response status for 404 or 410. For a redirect, expect a 301 or 308 response and inspect the Location header for the intended destination. To follow redirects and inspect each response in the chain, use:

curl -sS -L -o /dev/null -D - https://www.example.com/old-page

Also open the URL in a browser to check that the error page or destination is understandable. Test representative URLs on the live host, including any relevant query strings. These commands inspect HTTP behavior; they do not tell you whether a search engine has recrawled or updated a URL.

This article uses general HTTP and SEO principles. Google Search Central and HTTP documentation were not consulted live for this article; check the current guidance before a large migration.

Common Mistakes

  • Redirecting to a vaguely related page: A shared category or keyword does not necessarily make a destination a substitute.
  • Serving a 200 error page: A visible “not found” message is not enough if the HTTP status says the request succeeded.
  • Leaving internal links and sitemaps outdated: Update links you control and remove permanently deleted URLs from XML sitemaps. Point links to the final destination when there is one.
  • Blocking crawling of removed URLs: If a crawler cannot access the URL, it may not see its redirect or error response. Avoid relying on a robots.txt block to communicate removal.
  • Expecting instant index changes: Search engines need to revisit URLs, and the timing is not guaranteed.

Best Practices

Keep a simple removal log with each old URL, its reason for removal, and its chosen destination or status. Review high-value and frequently visited URLs individually rather than applying one rule to an entire site.

Monitor server responses and search reporting after deployment. Investigate unexpected redirect chains, incorrect status codes, and important internal links that still point to removed pages. If a page was removed for legal, privacy, or security reasons, address copies and access controls separately; an HTTP error alone does not remove information from caches or third-party copies.

Conclusion

Keep useful content available, redirect genuine replacements, and return 404 or 410 when the resource is gone without a suitable substitute. The right choice is the one that accurately communicates what happened and helps visitors take their next step.

What would your domain sell for?

A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.