Custom 404 page: what a good one does, and the soft 404 trap
Last updated
The short answer
A good 404 page turns a dead link into a way forward: it keeps your normal menu, says plainly that the page wasn't found, and offers links to your main services, a search box if you have one, and contact details. It must also send a real 404 code, not "200 OK", or Google treats it as a soft 404. Pages that moved should redirect to their new address instead.
What a good 404 page has
- Your normal header and menu, so visitors can carry on as from any other page.
- A plain message: "Sorry, we can't find that page." Skip the jokes if your customers are in a hurry, such as for emergency services.
- Ways forward: links to your top services, your contact page, and a search box if your site has one.
- A phone number or Call button for businesses that take calls.
The soft 404 trap
Each page your server sends comes with a status code. A missing page should answer 404 Not Found (MDN). Some sites show a "not found" message but send 200 OK, which tells Google the page exists. Google then reports a soft 404 in Search Console. With a real 404, Google says it doesn't index the address and removes it if it was indexed (Google Search Central), which is exactly what should happen to a page that is gone.
When a redirect is better
- The page moved (a new address for the same service): add a permanent (301) redirect to the new address.
- The page was replaced by a close equivalent: redirect to that.
- The page is simply gone: let it show your 404 page. Don't redirect everything to the homepage; visitors lose their place and Google may treat it as a soft 404.
See one address for each page for setting up redirects.
How to set one up
- WordPress: your theme's 404 template controls it; many themes and page builders let you design it like any other page.
- Shopify, Wix and Squarespace: each has a built-in 404 page you can edit in the site editor.
- Apache hosting: point to your custom page in
.htaccess(Apache):
ErrorDocument 404 /not-found.htmlUse a path on your own site, as above, not a full web address: a full address makes Apache redirect, and the 404 code is lost.
Finding broken links
- Google Search Console's Pages report lists addresses Google found returning 404 or soft 404.
- The free scan follows the links on your pages and reports ones that are broken.
- Fix links on your own pages first; redirect old addresses that other sites still link to.
Checklist
- A missing page returns a real 404 code, not 200.
- The 404 page keeps your normal header and menu.
- It offers links to your main services, contact details and search.
- Moved pages redirect to their new address; gone pages don't all redirect to the homepage.
- Search Console shows no unexpected 404s or soft 404s.
Questions people ask
- Do 404 errors hurt my Google ranking?
- Google drops pages that return 404 from its index and crawls them less, which is what should happen to pages that are gone. A few 404s are normal. What hurts is good pages returning errors, and visitors hitting dead ends.
- What is a soft 404?
- A page that says 'not found' but tells browsers and Google it loaded fine (code 200), or an empty page that does the same. Search Console reports these as soft 404s. A missing page should return a real 404 code.
- Should I redirect all 404s to my homepage?
- No. Sending every missing page to the homepage confuses visitors and Google may treat it as a soft 404. Redirect a page only to its genuine replacement; let the rest show a helpful 404 page.
- What should a 404 page say?
- That the page wasn't found, in plain words, followed by ways forward: your main menu, a search box if you have one, links to your main services, and how to contact you.
What the free scan checks for this
These are the FocalScore checks that cover this guide's subject. Each one in your report says what it found, shows the evidence and gives the fix.
- 404 page keeps navigation
- 404 page offers a way onward
- 404 page is branded
- Broken internal links
- No live page says "not found"
Sources
Last checked . Documentation, settings and rules change; if one of these pages now says something different, it is right and this guide is out of date. Tell us at info@focalscore.com.
- Google Search Central: How HTTP status codes affect Google Search
- MDN: 404 Not Found
- Apache HTTP Server: Custom error responses
More guides
- How to get your business recommended by ChatGPT and other AI assistants
- Why can't ChatGPT see my website? 5 reasons and how to fix them
- robots.txt for small businesses: what to allow, what to block
- What is IndexNow, and why does it matter for your website?
- The pages every small-business website needs
- How to turn more website visitors into enquiries
- Why your site is slow, and what to fix first
- How your business shows up in Google: titles, descriptions and headings
- One address for each page: www, https, canonical tags and redirects
- A sitemap for any site, including one built by hand
- Making your site usable by everyone
- Making your site work on a phone
- Security headers for a small business website: what to set, by platform
- Stop people sending email as your business: SPF, DKIM and DMARC
- Cookies and consent: what your site sets and when you need a banner
- How your links look when people share them
- Getting your business details right for Google Maps and AI assistants
- What is GEO (generative engine optimization)? A plain-English guide
- llms.txt: what it is, and does your business need one?
- AI crawler blocked? Fixing 403, 404 and 405 errors for GPTBot, ClaudeBot and PerplexityBot
- How to see if ChatGPT visits your website
- GEO vs SEO: what's the difference for a small business?
- AI SEO for small businesses: where to start
- Answer engine optimization (AEO), explained
- SPF record: what it is and how to set one up
- DMARC record: what it is and how to set one up
- DKIM record: what it is and how to set it up
- Why do my emails go to spam? How to check SPF, DKIM and DMARC
- Content Security Policy (CSP) for a small business website
- Website caching and CDNs: what they are and do you need one?
- security.txt: what it is and how to add one to your site
- What is DNSSEC, and should you turn it on?
- CAA record: what it is and how to set one up
- Largest Contentful Paint (LCP): why your page feels slow and how to fix it
- Local business schema: structured data for a small business, with a template
- Accessibility statement: what to write, with a template
- Trust badges and testimonials that help a website win customers
- Why isn't my website showing up on Google? How to get it there
- Google Business Profile: a checklist to make it match your website
- Meta description length: how long should it be?
- Image alt text: what to write, with examples
- Broken links: how to find and fix them on your website
- Website audit checklist: a free check-up for a small business site
- Why does my website say 'Not secure'? How to fix it
- Is my website ADA compliant? An accessibility checklist for US small businesses
- Has my website been hacked? How to check, and what to do next
- Core Web Vitals explained: LCP, INP and CLS in plain English
- Interaction to Next Paint (INP): why your site feels slow to tap, and how to fix it
- Cumulative Layout Shift (CLS): why your page jumps while it loads, and how to stop it
- What should a small business privacy policy include? A checklist
- Contact form emails not arriving? Find where enquiries get lost
- Website monitoring: catch downtime, broken enquiries and expired certificates
- Moving or redesigning your website: a checklist so nothing gets lost
- How to audit a WordPress website: a checklist for owners
- Why isn't my business showing up on Google Maps?
- Does ChatGPT recommend your business? How to check, and how to fix what it gets wrong
- Why isn't my website getting customers? A three-question diagnosis
- How to get more Google reviews without breaking Google's rules
- Google Search Console for a small business: set it up and read the three reports that matter
- Who owns your domain and website? How to check, and how to get them back
- How to show up in Google AI Overviews and AI Mode: what Google's own guide asks for
- What is a good PageSpeed score? What the number means for a small business site
- How much should a small business website cost, and what to check before you pay the final invoice
- Is my website down, or is it just me? What to check, in order
- Is my SEO company actually doing anything? How to check, and how to spot a scam email
- Should I redesign my website or just fix it?
- Does your website still need an FAQ page now that Google's FAQ rich results are gone?