How to Fix 404 Errors
September 6, 2026
Photo by David Pupăză on Unsplash
A 404 error is more than a dead end: it is a signal that a URL cannot deliver the content a visitor, search engine, or referring website expected to find. Left unmanaged, missing pages can create poor user journeys, waste crawl attention on outdated URLs, and allow valuable backlinks to point nowhere. The right fix is not always a redirect. A sound 404 error SEO strategy starts by understanding why the page is missing, what value it once had, and what the closest useful destination should be.
What a 404 Error Means
A 404 Not Found HTTP status code tells browsers and crawlers that the server cannot find a resource at the requested URL. This is a normal part of maintaining a website, especially when products, services, blog posts, categories, or campaigns change over time.
Common causes of 404 pages include:
- A page was deleted without a replacement or redirect plan.
- A URL slug changed during a redesign, CMS migration, or content update.
- An internal link contains a typo, incorrect relative path, or outdated URL.
- An external website links to a URL that no longer exists.
- A visitor manually enters an incorrect address.
- Old URLs remain in XML sitemaps, canonical tags, hreflang annotations, or navigation menus.
- URL parameters, case sensitivity, trailing slashes, or site-wide rewrite rules create invalid variations.
A 404 does not inherently mean your entire site will lose rankings. Search engines expect legitimate pages to disappear. The SEO concern arises when important, indexable URLs, high-value landing pages, or pages with relevant backlinks return errors without a clear replacement path.
How to Find 404 Errors on Your Website
Use several data sources because each reveals a different category of missing URL. Combining crawl data, search data, user behavior, and server activity gives you a more complete 404 audit.
Google Search Console
In Google Search Console, review the Page indexing report and look for URLs categorized as Not found (404). This report identifies URLs Googlebot attempted to crawl but could not locate. Export the list, then compare each URL with your current content inventory, redirects, and sitemap.
Search Console may also surface broken URLs in link reports, although those reports should be treated as a starting point rather than a full crawl diagnosis. Inspect priority URLs individually to confirm the current HTTP response and determine whether Google has discovered a valid replacement.
Site Crawl Tools
Crawling software can identify broken internal links at scale. A crawl of your site should reveal:
- Internal links pointing to 404 or 410 URLs.
- Broken image, PDF, JavaScript, and CSS resource paths.
- Navigation, footer, breadcrumb, and pagination links that lead to missing pages.
- Canonical tags that reference non-existent URLs.
- Hreflang URLs that return errors or redirect unexpectedly.
- XML sitemap entries that do not return a successful 200 status code.
Prioritize errors by importance: pages with organic traffic, backlinks, conversions, internal links, or prominent sitewide placement generally deserve attention first.
Analytics and Server Logs
Analytics platforms can help identify 404 pages that real visitors encounter. Track page titles, page paths, and referrers for your custom 404 template. This can reveal broken campaign links, old email URLs, and external referral sources.
Server log files add another useful layer. They show which missing URLs bots and users request, how often they request them, and which user agents are involved. Log analysis is especially useful for discovering crawl errors that a standard site crawl cannot reach, such as old URLs linked from outside your domain.
Choose the Right Fix: Restore, Redirect, or Keep the Error
Every missing URL needs an intentional decision. Avoid treating all 404 errors as identical.
Restore the Page
Restore a deleted page when the original topic remains useful, the URL has meaningful backlinks or search visibility, or users clearly expect that exact resource. If you recreate it, ensure the content genuinely satisfies the original intent. Publishing a thin substitute simply to make an error disappear is rarely a helpful solution.
Use a 301 Redirect
A 301 redirect is appropriate when a removed URL has a close, relevant replacement. For example, an outdated service page may redirect to the current version of that same service, or an old product URL may redirect to its direct successor.
Redirect users to the most contextually similar live page. Update internal links as well; redirects are a safety net, not a substitute for clean site architecture. Keep redirect paths direct whenever possible instead of relying on multiple hops.
Leave a 404 or Use 410 Gone
It is often correct to leave a URL as a 404 when there is no equivalent replacement, such as a discontinued item, expired campaign, duplicate URL, or mistyped address. A 410 Gone status code is a more explicit signal that the resource was intentionally removed and is not expected to return.
Use 410 selectively for permanently retired content. Do not force irrelevant redirects merely because a URL once existed. Sending every missing page to the homepage can confuse visitors because the homepage usually does not match the requested intent.
Fix the Technical References That Create Broken URLs
Resolving the status code alone is not enough. Remove the sources that continue to generate invalid crawl paths and poor user experiences.
- Internal links: Replace every broken contextual link with the correct live URL. Review blog content, resource hubs, related-post modules, and promotional banners.
- Navigation: Check primary menus, footer links, sidebar elements, breadcrumbs, filters, and mobile navigation. Sitewide broken links can repeatedly send users and crawlers to dead pages.
- XML sitemaps: Remove 404 and 410 URLs. Sitemaps should list the preferred, indexable URLs you want search engines to crawl.
- Canonical tags: Ensure each canonical points to a live, relevant, indexable URL that returns a 200 response.
- Hreflang references: Confirm every alternate-language or regional URL exists, is reciprocal where required, and resolves correctly.
Also check HTTP versus HTTPS versions, www and non-www versions, trailing-slash rules, and URL capitalization. Inconsistent URL conventions can create avoidable broken-link patterns.
Create a Helpful Custom 404 Page
A custom 404 page cannot replace repairing broken URLs, but it can keep visitors moving when an invalid address is unavoidable. Make the page clearly state that the requested content was not found, while preserving your site’s normal branding and navigation.
Include useful recovery options such as:
- A prominent search bar.
- Links to key service, product, category, or resource pages.
- A link back to the homepage.
- Popular articles or recently updated content.
- A contact option for visitors who need specific help.
Most importantly, confirm the custom page still returns a real 404 HTTP status. A visually branded error page that returns 200 OK may be interpreted as a soft 404, making it harder for search engines to understand that the requested content is absent.
Validate Repairs and Monitor for Recurring Errors
After implementing fixes, test affected URLs in a browser and with an HTTP status checker. Confirm restored pages return 200, permanent redirects return 301 and lead to the intended destination, and intentionally removed pages return 404 or 410.
Recrawl the website to verify that internal links, sitemap entries, canonicals, and hreflang annotations no longer point to missing resources. For an important restored or redirected URL, use Search Console’s URL Inspection tool and request indexing when appropriate. Then continue monitoring Page indexing reports, crawl tool results, analytics events, and server logs for new patterns.
404 Error SEO FAQs
Do 404 errors hurt SEO rankings?
A 404 error is not automatically a sitewide ranking problem. However, important missing pages can lose their ability to serve visitors and may no longer be eligible to appear for relevant searches. Broken internal links, lost backlink destinations, and invalid technical references can also weaken the quality and usability of your website. Focus on fixing high-value URLs and recurring sources of broken links.
Should I redirect every 404 page to the homepage?
No. Redirect only when a closely relevant replacement exists. An irrelevant homepage redirect does not help a visitor looking for a specific product, article, or service. If no suitable alternative exists, a proper 404 or 410 response paired with a useful custom error page is usually the clearer option.
What is the difference between a 404 error and a 410 status code?
A 404 means the requested resource was not found. A 410 means the resource was intentionally removed and is not expected to return. Both can be appropriate for unavailable content; use 410 when you can confidently state that the URL has been permanently retired.
How do I find 404 errors in Google Search Console?
Open Google Search Console, select your property, navigate to the Page indexing report, and review the Not found (404) entries. Export the URLs, inspect the most important ones, and decide whether each should be restored, redirected, or intentionally remain unavailable.
How long does it take Google to remove a 404 page from search results?
There is no fixed timetable. Google must recrawl the URL and process the updated status, and timing can vary by site, URL importance, crawl activity, and other factors. Ensure the URL consistently returns the intended status, remove it from XML sitemaps, correct internal links, and use URL Inspection for priority pages where appropriate.
Ready to see how your site stacks up? Run a free SEO audit and get a clear picture of what's holding your rankings back.