What a good 404 page should say

Laptop showing a friendly page not found message

A missing page does not have to lose you a visitor. What to put on a 404 page, and the technical detail many sites get wrong.

Every website ends up with missing pages. A product is discontinued, a page is renamed, or someone types an address slightly wrong. When that happens, the visitor sees your 404 page, and what it says decides whether they stay or go back to the search results.

Say plainly what happened

Skip the jargon. "That page could not be found" is clearer than "Error 404: resource not located". One short sentence suggesting why, such as an old link or a typing mistake, reassures visitors that they have not broken anything.

Offer a way forward

A dead end loses people. Give them two or three useful links: the home page, your most popular pages and a way to get in touch. If the site has a search box, put it here too. The aim is to turn a moment of annoyance into the next click.

Signpost at a crossroads on a country path

Keep it looking like your website

A plain white server error page makes visitors wonder whether they have landed on the right site at all. Your 404 page should carry the same header, footer and design as every other page, so it is obvious they are still in the right place.

Return a real 404 status

This is the technical detail many sites get wrong. Behind the scenes, every page sends a status code to the browser. A missing page should send 404. Some websites show a "not found" message but send a 200 code, which means "everything is fine". Search engines call this a soft 404, and it can leave useless pages sitting in search results.

You can check by opening a made-up address on your site, such as /this-page-does-not-exist, in Google Search Console's URL Inspection tool or any online status checker. It should report 404.

Web designer sketching a page layout on paper

Watch for patterns

If the same missing address keeps turning up, something is pointing people there. It may be an old link on another website or an out-of-date menu item. In that case, a permanent redirect to the closest live page is better than any 404 page, because it takes the visitor exactly where they wanted to go.