Guides › HTML / PHP sites › Site down or error screens

Custom 404 Page: Create One and Return the Right Status

A friendly 404 helps users and keeps status correct.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Site down or error page

A custom 404 page helps visitors who land on a missing address. It must still return a 404 status, so search engines know the page does not exist.

1Design the page2Create it in your theme or builder3Make sure it returns 4044Do not redirect everything to the home page5For static sites6Test on mobile7Monitor 404sFixed? Test the site. If not, get help.
The steps in order. Work down the list and stop when the problem is solved.

Step 1: Design the page

Illustration for Step 1: Design the page

Include a clear message, a search box, links to the home page and popular guides, and your contact link.

Step 2: Create it in your theme or builder

Illustration for Step 2: Create it in your theme or builder

In WordPress many themes have a 404.php or a 404 template in the site editor. Page builders have a 404 template.

Step 3: Make sure it returns 404

Illustration for Step 3: Make sure it returns 404

Use a header checker on a missing address, such as yoursite.com/this-does-not-exist. The status must be 404, not 200 or a redirect to the home page.

Step 4: Do not redirect everything to the home page

Illustration for Step 4: Do not redirect everything to the home page

Mass redirects of 404s to the home page are treated as soft 404s.

Step 5: For static sites

Illustration for Step 5: For static sites

Create 404.html and point your server to it with ErrorDocument 404 /404.html in .htaccess.

Step 6: Test on mobile

Illustration for Step 6: Test on mobile

Check the layout.

Step 7: Monitor 404s

Illustration for Step 7: Monitor 404s

Check Search Console and fix links that lead to them.

Still stuck?

If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-22.