SEO 404 Page Best Practices
A 404 page is the page shown when a requested URL does not exist, and a well-built one helps users recover without harming SEO.

Key takeaways
- A 404 page must return a true 404 status code to avoid soft 404 issues.
- Only redirect missing URLs to the most relevant replacement page, not the homepage.
- Include navigation, search, and helpful links to keep users engaged.
- Use Google Search Console to find and fix recurring 404 errors.
- Never leave broken internal links pointing to 404 pages.
A well-optimized 404 page keeps users on your site and avoids confusing search engines.
Example: Fixing a Broken Product Page
- A user clicks a link to
/product/old-widgetthat no longer exists. - Wrong approach: The server returns a 200 OK with a generic “Page Not Found” message. Google sees it as a valid page and may index it as thin content.
- Right approach: The server returns a 404 status code. The page shows a friendly message: “Sorry, that widget is gone. Check out our new widgets.” It includes a search bar and links to popular categories.
- Even better: If the product was replaced by
/product/new-widget, use a 301 redirect instead of a 404.
Quick Start: Optimize Your 404 Page in 5 Steps
- Check your server response – Use a tool like HTTP Status Checker to ensure your 404 page returns a real 404 status code, not 200.
- Design a helpful page – Add clear messaging (“Page not found”), a search bar, links to your homepage and top categories, and a contact option.
- Avoid blanket redirects – Only redirect missing URLs to a relevant replacement page. If no match exists, let it 404.
- Fix broken internal links – Use Google Search Console to find pages with 404 errors and update the links pointing to them.
- Monitor and iterate – Check Search Console regularly for new 404s and decide whether to redirect, fix, or leave them.
How to Judge If Your 404 Page Is SEO-Friendly
- Status code: Does the page return a 404 (or 410) HTTP status? (Use browser dev tools or a status checker.)
- User experience: Can users easily navigate away? Does it include a search bar or links to important sections?
- Internal links: Are any internal links pointing to URLs that return 404s? (Check via Google Search Console or a crawler.)
- Redirect logic: Are you redirecting only to relevant pages, or sending everyone to the homepage?
Common Mistakes to Avoid
- Returning a 200 status code on a missing page – This creates a soft 404 and can harm indexing.
- Redirecting every missing URL to the homepage – Google advises against this; it confuses users and search engines.
- Leaving broken internal links unfixed – This creates a poor user experience and wastes crawl budget.
- Using vague or technical error text – “404 Not Found” without guidance frustrates users.
Next step
FAQ
Do 404 errors hurt SEO?
404 errors themselves do not directly hurt SEO if the server returns a correct 404 status code. However, broken internal links or poor user experience can indirectly affect rankings. Monitor and fix recurring 404s.
Should I redirect all 404 pages to the homepage?
No. Google advises against blanket redirects. Only redirect to the most relevant replacement page. If no relevant page exists, let the URL return a 404.
What is a soft 404?
A soft 404 is when a page returns a 200 OK status but shows a 'page not found' message or thin content. Google treats these as 404s and may deindex them.
Related topics
Sources
- Google Search Central — Most authoritative source for how Google expects missing pages, redirects, and status codes to be handled.
- Moz Learn SEO — Well-known SEO reference that reinforces correct status codes and temporary vs permanent handling.
Reviewed by Lucía Marín, Founding editor.