Article
What is a 404 page, and how do I make a useful one for my website?
Published . Updated .
A 404 page is the page a visitor sees when they ask for an address on your site that does not exist. The server answers “404 Not Found,” and your site shows a page explaining that. Every site has one, even if you never made it. A useful 404 page says the page is missing, links to your main pages, and gives a phone number.
The default 404 page on many sites is a blank white screen with a line of technical text. A visitor who lands there has no idea if your business closed, if your site broke, or if they mistyped something. Many leave.
Why visitors land on a 404 page
Four causes cover most cases.
A mistyped address. Someone typed the web address by hand and got a letter wrong.
A page you deleted or renamed. You changed /services to /what-we-do and the old address now points at nothing.
An old link somewhere else. A directory, a social profile, a printed flyer, or another website links to an address that no longer exists.
A broken link on your own site. A menu item or button points to a page that was removed.
You cannot stop all of these. People mistype. Other sites link to old addresses. A good 404 page catches those visitors instead of losing them.
What to put on it
Keep it short. A visitor on a 404 page wants to get where they were going.
Start with a plain headline that says what happened. “That page is not here” works. Do not blame the visitor. Do not make a joke at their expense.
Add one sentence of help. Say the page may have moved or the address may have a typo.
Then give three or four ways forward:
A link to your home page.
Links to your main pages, such as services, about, and contact.
A phone number or email address, so a person with a real need can reach you. If you run a trade or a clinic, this matters most. Someone looking for your hours or your booking page is close to calling.
A search box, if your site has more than a few dozen pages. A five-page site does not need one.
Use the same header, footer, and menu as the rest of your site. A 404 page that looks like a different website feels like a dead end.
The page must send a real 404 status
This is the part most people get wrong.
When a page is missing, your server sends a status code along with the page. A missing page should send 404. Some sites show a friendly “not found” message but send a 200 code, which means “all good.” Google calls these soft 404s. Google may then treat your error page as a real page and try to index it. It also confuses the crawl reports in Google Search Console.
Do not redirect every missing address to your home page either. It looks helpful. It is not. Google’s guidance is to treat that as a soft 404. The visitor also gets no hint that something went wrong.
To check your status code, open a made-up address on your site, like yourdomain.com/asdfgh. You should see your 404 page. In Chrome, open Developer Tools, click the Network tab, reload, and look at the status of the first request. It should say 404.
How to set one up
WordPress. Most themes include a 404 template. Newer block themes let you edit it in the Site Editor under Templates. Older themes use a file named 404.php in the theme folder. If you do not edit code, ask whoever maintains the site.
Wix. Wix creates a 404 page for every site and lets you edit it in the editor. Look for it in your site pages menu. Menu names change between versions, so search Wix’s help pages for “404 page” if you cannot find it.
Squarespace. Version 7.1 has a setting for a custom Not Found page. It sits in the website tools in the pages panel. Search Squarespace’s help pages for “404 page” if the label has moved.
Custom-built sites. Make a page called 404.html and tell your server to use it. On Apache, one line in the .htaccess file does it:
ErrorDocument 404 /404.html
In Astro, you add a file named 404.astro in the pages folder. Other hosts have their own setting. Check that yours sends the 404 status, using the test above.
Fix the cause, too
A good 404 page softens the problem. It does not fix it.
If you moved or renamed a page, set up a redirect from the old address to the new one. That sends visitors and Google to the right place with no error. What is a 301 redirect covers how.
If you are rebuilding your site, old addresses are the biggest risk. A list of every old address and where it should point is part of the job. Will a website redesign hurt my SEO explains why.
To find 404s you did not know about, open Google Search Console and check the page indexing report. It lists addresses Google tried and could not find, under the reason “Not found (404).” Look at the list. A few old addresses are normal and need no action. Fix the ones that have links pointing at them or that used to bring in visitors.
You do not need to fix every 404. Google says a 404 on a page that does not exist is correct behavior and does not hurt the rest of your site. A flood of 404s on pages that should exist is the problem. If your pages are missing from Google, start with why your website is not showing up on Google.
If you want a 404 page built to match your site, or a check for broken addresses after a move, Book a consult.
Read next
Should I use Wix or Squarespace or hire a web designer?
Use Wix or Squarespace for a simple DIY site. Hire a web designer when the site needs to earn trust, leads, or sales. Here is how to decide.
How to start a new website
Start a new website in ten practical steps, from the page plan and domain to ownership, analytics, testing, and launch.
Choosing a content management system (CMS)
Compare 12 popular content management systems, including WordPress, Squarespace, Shopify, Webflow, and Ghost, and learn how to pick the right one.
Ready to talk?
A 20 minute call. No pitch. What you need and what it costs.
Or text 778-692-5555 or email hello@acornwebsites.com. We reply within two business days.