Skip to content

How to Write a 404 Error Page That Keeps Visitors on Your Kenyan Website

Custom 404 page – modern shopping area in Rosebank, Johannesburg, South Africa
Photo: Nick-D, CC BY-SA 4.0, via Wikimedia Commons

Every website eventually shows a 404 page to someone, whether it’s from an old link that’s no longer valid, a typo in the address bar, or a page you deleted without redirecting it. What matters is what happens next. A generic, unhelpful 404 page is one of the easiest ways to lose a visitor for good, while a thoughtful one can quietly turn a mistake into a second chance at keeping them on your site.

What a 404 page actually is

A 404 error means the server couldn’t find the page the visitor was looking for. It’s not necessarily a sign something is broken with your whole website — often it just means a link pointed somewhere that no longer exists, or someone mistyped a URL. Every website has a default 404 page built in, usually a plain, unstyled message that says something like “Not Found.” That default page does nothing to help the visitor, and does nothing for your business either.

Why it matters more than it seems

Think about how a visitor actually lands on a 404 page. They clicked a link expecting something useful — a product, a blog post, a contact form — and instead got a dead end. At that exact moment, they’re deciding whether to try again on your site or just leave and search for a competitor instead. A well-designed 404 page is one of the few pages on your entire site guaranteed to be shown at a moment of minor frustration, which makes it worth getting right.

Advertisement

What to include on a good 404 page

  • A clear, friendly message that acknowledges the page wasn’t found, without technical jargon or blame directed at the visitor
  • A search bar so visitors can quickly find what they were actually looking for instead of starting over
  • Links to your most important pages — homepage, main services, contact page — so there’s always a next step available
  • Your logo and site navigation, so the page still feels like part of your website rather than a dead-end error screen
  • A way to report the broken link, even something as simple as a contact email, which helps you catch and fix issues you might not otherwise notice

Keep the tone light, not apologetic

You don’t need to over-explain or sound alarmed. Something like “We couldn’t find that page, but here’s what you might be looking for” works better than a long technical apology. A touch of local personality is fine too — a Kenyan retailer might use something like “Hii page haipo, lakini hebu tuangalie hizi” alongside links to their main categories, which feels more human than a sterile error message.

Setting it up on WordPress

If your site runs on WordPress, most themes let you customise the 404 template directly, or you can use a plugin like 404page to build a custom one visually without touching code. At minimum, make sure your custom 404 page uses your normal site header and navigation menu, so visitors never feel like they’ve left your website entirely.

Track your 404s, don’t just design around them

A nicely designed 404 page treats the symptom. The better long-term fix is reducing how often visitors hit one in the first place. Check Google Search Console periodically under the “Pages” or “Coverage” report to see which URLs are returning 404 errors, and either restore those pages, or set up a 301 redirect to the closest relevant replacement. This is especially important after a site redesign or when moving content between domains, since old links from search results, social media, or other websites often keep pointing to the old address for months or years.

A quick example

Imagine a Nairobi-based hardware supplier that discontinued an old product page without redirecting it. A customer who bookmarked that page, or found it through an old Google result, now hits a dead 404. With a good 404 page, they see a message like “That product page has moved” along with a search bar and a link to the current hardware catalogue — and stay on the site. Without one, they simply leave and search for a competitor’s hardware store instead.

Test it yourself

Type a random, non-existent page into your own website’s address bar and see what comes up. If it’s the plain default message with no branding, no navigation, and no way forward, that’s a quiet leak in your website that’s worth patching. It typically takes less than an hour to fix, and it’s one of those small details that separates a polished, professional Kenyan business website from one that feels unfinished the moment something goes slightly wrong.

Advertisement
Advertisement

Leave a Reply

Your email address will not be published. Required fields are marked *

Chat now