Technical SEO and website maintenance
How to Improve 404 Errors: Find, Prioritize and Fix Broken URLs
To improve 404 errors, first identify broken URLs that still receive internal links, organic traffic, backlinks or crawler activity. Repair incorrect links, restore valuable pages or redirect a permanently moved URL to its closest equivalent. Return a true 404 or 410 when no relevant replacement exists. Remove broken URLs from sitemaps, avoid redirecting everything to the homepage and test the final HTTP response. A useful custom 404 page improves recovery, but it must still return a 404 status.

TL;DR
Key Takeaways
- A 404 is appropriate when a requested resource does not exist and has no relevant replacement.
- Fix active internal links before spending time on old, unlinked URLs discovered by external crawlers.
- Use a 301 redirect for a permanent move, a 302 for a temporary move and a 410 when permanent removal is known.
- Do not redirect unrelated deleted URLs to the homepage, because this can confuse users and be treated as a soft 404.
- A custom error page should help users recover while preserving the real 404 HTTP response.
- Prioritize broken URLs with traffic, backlinks, conversions, sitemap inclusion or frequent crawler requests.
- Validate JavaScript applications at the HTTP and rendered-page levels because a visual error screen can still return 200.
- Track broken internal links, soft 404s, redirect quality and crawler requests as separate operational metrics.
What a 404 error means
404 Not Found is an HTTP client-error response indicating that the origin server cannot find a current representation of the requested resource, or is unwilling to disclose that one exists. The status does not establish whether the absence is temporary or permanent. RFC 9110 reserves 410 Gone for cases where permanent removal is known.
A 404 is not automatically an SEO defect. Deleted products, expired events, malformed URLs and links typed incorrectly can all produce legitimate 404 responses. Improvement means reducing avoidable dead ends while preserving accurate status codes for resources that really are absent.
The harmful cases are usually active broken internal links, valuable URLs removed without a migration plan, soft 404s and high-demand pages sent to irrelevant destinations. Those problems affect navigation, link equity, conversion paths, indexation signals and crawler efficiency.
Prioritize 404 errors by value and cause
Do not judge a site by its raw 404 count. A large site can accumulate thousands of harmless requests from typos, obsolete external links and crawler-generated URL combinations. Rank each URL by recoverable value and whether the site itself is causing the request.
| 404 category | Typical evidence | Best action | Priority |
|---|---|---|---|
| Broken internal link | Linked from navigation, templates or indexed pages | Correct the source link, then redirect if appropriate | Critical |
| Moved high-value page | Traffic, conversions, backlinks or branded demand | 301 to the closest equivalent | Critical |
| Deleted page with no substitute | No useful replacement exists | Keep 404 or use 410, remove internal references | Normal |
| URL in an XML sitemap | Sitemap lists a nonworking URL | Restore, redirect or remove it from the sitemap | High |
| Malformed dynamic URL | Facets, parameters, calendar paths or routing defects | Fix URL generation and linking logic | High if recurring |
| Old external request | No internal links, traffic or meaningful backlinks | Leave as 404 and monitor | Low |
A practical scoring model can assign points for internal inlinks, organic landings, conversions, referring domains, sitemap inclusion and repeated Googlebot requests. Work from the highest score downward rather than clearing reports alphabetically.
Find the source of each broken URL
Combine several datasets because no single report reveals every cause. Crawl the site to find internal links that resolve to 404. Export the source page, broken destination, anchor text, link location and redirect path. Check Google Search Console for not-found examples, but remember that discovery does not prove that a URL remains internally linked.
- Crawl internal links: Include navigation, pagination, canonicals, hreflang references, image links and XML sitemaps.
- Review analytics: Find 404 URLs receiving landing sessions, conversions or repeated user visits.
- Check backlinks: Identify broken destinations with authoritative or relevant referring pages.
- Analyze server logs: Segment requests by users, Googlebot, Bingbot and other verified crawlers. Look for recurring patterns rather than isolated hits.
- Inspect templates and databases: A single defective product, location or CMS template can generate thousands of broken URLs.
- Test the response: Confirm the initial status, every redirect hop and the final rendered result.
For recurring patterns, fix the generator rather than creating one redirect at a time. Examples include a missing trailing-slash rule, incorrect relative links, deleted locale folders and case-sensitive paths.
Use this 404 decision framework
Choose the response based on user intent and resource equivalence, not on a desire to eliminate an error report.
- Does the requested page work at another permanent URL? Use a direct 301 redirect to that equivalent URL and update internal links.
- Is the move genuinely temporary? Use a 302 redirect and retain the original URL in site references where appropriate.
- Was the page removed, but a close substitute satisfies the same intent? Consider a 301 only if the substitute is materially equivalent. A product category is not automatically equivalent to every discontinued product.
- Is permanent removal known and no substitute exists? Return 410. This communicates removal more explicitly than 404.
- Is the URL unknown, mistyped or unsupported? Return a real 404.
Do not mass redirect deleted pages to the homepage. Google explicitly warns that irrelevant redirects can confuse users and may be treated as soft 404s. Redirect chains should also be collapsed so the old URL points directly to the final destination.
Implement fixes without creating new technical debt
Repair links at their source
Changing an internal link is better than relying indefinitely on a redirect. Update navigation, body links, canonicals, hreflang annotations, structured-data URLs and sitemap entries. Search CMS fields and reusable templates for the old path.
Map migrations by intent
For a site migration, build an old-to-new URL map before launch. Match products, services, articles and local landing pages individually where possible. Preserve query intent, language and geographic relevance. Test representative URLs and high-value pages in staging, then verify production responses after release.
Handle inventory and local pages carefully
A temporarily unavailable product may remain live with accurate availability information if it is expected to return. A permanently discontinued product can redirect to a true successor, but not an unrelated bestseller. Closed location pages may redirect to a replacement location only when it reasonably serves the same audience. Otherwise, explain the closure on a live page for a useful transition period, then retire it deliberately.
Keep redirect rules documented with an owner, reason and review date. Broad regular-expression rules should be tested against a sample of valid and invalid URLs before deployment.
Detect soft 404s and JavaScript failures
A soft 404 occurs when a page appears to say that nothing was found but returns 200, or when an irrelevant redirect behaves like an error page. Search systems must infer that the content is missing. Google’s crawl-budget guidance says soft 404 pages can continue consuming crawl resources, while a true 404 strongly signals that the URL should not be recrawled.
Test both the raw HTTP response and rendered output. This is essential for single-page applications. A server may return the same 200 shell for every route while client-side JavaScript displays a not-found message. Configure server-side routing, dynamic rendering infrastructure or framework-level response handling so invalid routes emit meaningful status codes.
- Verify status codes without relying only on what a browser displays.
- Search rendered text for empty-state or not-found templates.
- Confirm that an error route is not canonicalized to an unrelated live page.
- Test with JavaScript enabled and disabled where the architecture permits.
- Check whether blocked scripts or failed API calls incorrectly turn valid pages into apparent errors.
Build a useful custom 404 page
A custom 404 page should return 404 while helping a person continue. Use a clear explanation, normal site navigation, a working search function and a small set of contextually useful destinations. Preserve the site’s visual identity, but keep the page lightweight enough to work when other services fail.
For an ecommerce site, offer category search rather than automatically redirecting every missing product. A local business can surface its location finder, contact route and primary services. A publisher can offer topic hubs or recent resources. Avoid overwhelming users with an entire sitemap or implying that the missing content still exists.
Measure the page as a recovery interface. Useful signals include search usage, onward-click rate, exits and successful conversions after a 404 encounter. Do not add index-oriented structured data that describes content unavailable on the visible page. The error template itself should not be submitted in a sitemap or made indexable through inconsistent canonical signals.
Monitor 404 health with actionable KPIs
Separate outcome metrics from raw counts. Total 404 requests can rise because bots probe random paths, even while site quality improves.
- Broken internal URLs: Count unique 404 destinations linked from crawlable pages. The target should be zero for important templates and navigation.
- Internal 404 inlinks: Track the number of source links, not only destinations. One missing asset can have thousands of inlinks.
- Valuable 404 landings: Monitor sessions, conversions and referring domains reaching unavailable URLs.
- Soft 404 rate: Test pages returning 200 that have thin, empty or not-found output.
- Redirect quality: Measure direct one-hop mappings, chains, loops and destinations that fail intent review.
- Sitemap validity: Require submitted URLs to return 200 and be intended for indexing.
- Crawler demand: Use logs to track repeated requests to high-value missing URLs and malformed URL families.
Set alerts for sudden increases after deployments, CMS releases, taxonomy changes and migrations. Review high-value 404s weekly on large commercial sites, while stable smaller sites may use a monthly cycle.
Turn selected 404s into SEO recovery opportunities
Broken URLs with strong backlinks can reveal content demand. Restore the original resource when it remains useful, consolidate it into a stronger topical hub or redirect it to a genuinely equivalent page. Contact important linking sites when correcting the source URL would be better than maintaining a redirect.
Use this process for content decay remediation. Compare the retired page’s historic query theme, links and conversions with the current content graph. A recovered statistics page, technical reference or original dataset can regain usefulness and attract natural citations. Link it from the appropriate hub and related spokes rather than leaving it isolated.
For AI Overviews, AI Mode and other answer systems, a missing or nonindexed page cannot reliably function as a supporting source. Google states that pages shown as supporting links in its AI features must satisfy foundational Search requirements, including indexability and snippet eligibility. Clean status handling therefore supports retrieval, but it does not guarantee selection or citation by any answer engine.
A higher-risk tactic is redirecting expired domains or unrelated historical pages solely to transfer authority. Relevance, ownership history and user expectations can be weak, and manipulative implementations may create spam or trust risks. Prefer recoveries tied to a real resource, audience and editorial purpose.
What is proven, accepted and still uncertain
Established by standards or official guidance
404 means the requested representation was not found, while 410 communicates known permanent removal. Google recommends 301 for permanent moves, 302 for temporary moves and real 404 or 410 responses when no replacement exists. Google also advises against irrelevant homepage redirects and requires meaningful status handling for JavaScript sites.
Strong practitioner consensus
Technical SEO teams generally prioritize internally linked 404s, sitemap errors, URLs with traffic or backlinks and failures created by templates. Ahrefs and Screaming Frog guidance aligns with repairing source links and redirecting only when a relevant replacement exists. Current Reddit discussions echo these priorities, but community reports are anecdotal rather than causal proof.
Still contextual or uncertain
There is no universal safe number of 404s and no fixed time in which every missing URL disappears from search systems. Crawl frequency depends on site demand, history and URL discovery. Research shows that broken links and soft 404 behavior are widespread, but prevalence figures from a dataset should not be treated as performance benchmarks for every site. The business value of restoring a page also depends on intent, link quality, conversion potential and maintenance cost.
FREQUENTLY ASKED QUESTIONS
SEO Questions Answered
Do 404 errors hurt SEO?
A legitimate 404 does not inherently harm the whole site. SEO problems arise when important pages disappear, internal links lead to errors, valuable backlinks are wasted, sitemaps contain dead URLs or valid content incorrectly returns 404.
Should every 404 be redirected?
No. Redirect only when a relevant replacement satisfies substantially the same intent. Unknown, mistyped and permanently removed URLs without substitutes should normally remain 404 or return 410.
Is a 404 or 410 better for a deleted page?
Use 410 when you know the removal is permanent. Use 404 when the resource is simply not found or permanence is uncertain. Both are valid 4xx responses, and neither requires a redirect when no replacement exists.
Can I redirect all 404 pages to the homepage?
No. An unrelated homepage redirect gives users an unexpected destination and may be interpreted as a soft 404. Keep a real 404 or map each valuable old URL to its closest equivalent.
What is the difference between a hard 404 and a soft 404?
A true 404 returns the HTTP 404 status. A soft 404 appears missing but returns 200, or redirects to an irrelevant destination that does not satisfy the request. The latter can waste crawl activity and create confusing indexation signals.
How do I find pages linking to a 404?
Run a site crawl and export the inlinks or source pages for every 404 destination. Also inspect navigation templates, XML sitemaps, canonicals, hreflang references, structured data, analytics, backlink reports and server logs.
Should a custom 404 page return 200?
No. The page can have branded design, search and navigation, but the server should still return 404. A 200 response falsely indicates that a valid resource was served.
How should an ecommerce site handle discontinued products?
Keep the page live if the product may return and useful information remains. For permanent discontinuation, redirect only to a genuine successor or close equivalent. Otherwise return 404 or 410 and remove internal product links.
How often should 404 errors be audited?
Audit after migrations, redesigns, taxonomy changes and major releases. Large or frequently changing sites should monitor high-value 404s weekly and use automated alerts. Smaller stable sites can usually perform a focused monthly review.
RESEARCH SOURCES
Sources and Verification
- RFC 9110, HTTP SemanticsPrimary HTTP standard defining 404 Not Found, 410 Gone and related response semantics.
- MDN Web Docs, 404 Not FoundTechnical reference explaining the 404 response and common causes such as moved, deleted or mistyped URLs.
- Google Search Central, Troubleshoot Crawling ErrorsOfficial guidance for diagnosing crawling and HTTP response problems.
- WebSci 2025 Redirection StudyIndependent research examining redirects, custom 404 URLs, soft 404 classification, redirect chains and server instability.
- WebSci 2025 Redirection Study, Author PaperAuthor-hosted paper supporting the study's methodology and reported findings.
- University of Michigan, Link Rot ResearchResearch examining deleted pages, inaccessible hosts and limitations in archived web resources.
- Ahrefs, 404 Page Error in Site AuditPractitioner guidance prioritizing internally linked 404s and URLs with meaningful backlinks, while discouraging irrelevant redirects.
- Screaming Frog SEO Spider TutorialsPractitioner instructions for crawling response codes and exporting source pages, anchors and inlinks for broken URLs.
- Reddit SEO Community DiscussionCurrent practitioner discussion illustrating how SEOs distinguish historical URL noise from active internal and indexation problems. Anecdotal evidence only.
- Research sourceConsulted during live web research for this page.
- Research sourceConsulted during live web research for this page.
- Research sourceConsulted during live web research for this page.
- Google Search Central, Site Moves With URL ChangesOfficial migration guidance covering permanent redirects, URL mapping and the risks of sending unrelated URLs to one destination.
- Broken Links on the Web, Majestic Million StudyDataset study of 88,000 homepages that found broken links on 35.2 percent of sampled sites. It is prevalence evidence, not a universal benchmark.
- Research sourceConsulted during live web research for this page.
- Google Search Central, JavaScript SEO BasicsOfficial guidance on JavaScript rendering, routing and meaningful HTTP status codes.
- Broken Links in Stack OverflowResearch showing the persistence of broken references in community knowledge, including limited removal of broken links.
- Google Search Central, Crawl Budget ManagementOfficial documentation explaining crawl signals, soft 404 resource use, sitemap maintenance and redirect-chain considerations.
- Google Search Central, AI Features and Your WebsiteOfficial guidance stating that AI feature visibility relies on foundational Search eligibility, indexation and snippet requirements.
- Google Search Central Blog, Do Not Use 404 for Rate LimitingOfficial explanation of how 4xx responses affect crawling and potential removal, with 429 distinguished for rate limiting.
SEOS.CO EXPERT MATCH
Ready to Find the SEO Partner That Can Win Your Market?
Tell us your market, goals and growth targets. SEOS.co will help narrow the field and connect you with a serious SEO partner built for the opportunity.