Best Practice For Custom 404 Pages

It is recomended to create a custom 404 page to help visitors find the information they're looking for

» SEO Help » Custom 404 Pages

About Custom 404 Pages

About Custom 404 Pages

When a user clicks on a non existing page or a broken link most servers returns a 404 not found page which at the most of times is not attractive or useful.

It is recommended to create a custom 404 page to help visitors find the information they're looking for.

Custom 404 pages can be a standard HTML page, you can customize it any way you want.

Below are Googles 5 best practice tips for custom 404 pages.

  • Tell visitors clearly that the page they're looking for can't be found. Use language that is friendly and inviting.
  • Make sure your 404 page uses the same look and feel (including navigation) as the rest of your site.
  • Consider adding links to your most popular articles or posts, as well as a link to your site's home page.
  • Think about providing a way for users to report a broken link.
  • No matter how beautiful and useful your custom 404 page is, you probably don't want it to appear in Google search results. To prevent 404 pages from being indexed by Google and other search engines, make sure that your web server returns an actual 404 HTTP status code when a missing page is requested.

To check a broken links status code you can use the following tool: (Enter a URL into the search tool that you know does not exist on your website. In this instance, I used

The Server Header Checker should respond with a status code of 404 not found (Response HTTP/1.1 404 Not Found)

How To Create A Custom 404 Page

First, create a standard HTML page (preferably a copy of your theme template) and make sure you include important navigation. Then name the page. In this instance, I named the page 404.html

On Apache server add the following rewrite rule to the .htaccess file:

RewriteEngine on
ErrorDocument 404 /404.html

And that's it. When a user clicks on a broken link they will automatically be redirected to the custom 404 page (404.html)


Author - Terry

Terry is the owner of Cyber SEO Srvices and specializes in Optimization, Web Design and Digital Marketing and has been worked in the field for over 10 years and in Jan 2019 he qualified as a Google Ads Specialist and Consultant for Google Search, Display, Mobile, Shopping and Video Ads.