What is 404 page? A 404 page is what a user sees when they try to reach a non-existent page on your website. There are several reason that bring users to the 404 page:
The standard 404 page usually does not provide the user with any useful information and most users may just surf away from your site. That is reason you need to create a custom 404 page.
This is how the default 404 look like, see the following image:
A good custom 404 page will help people find the information they are looking for, as well as providing other helpful content and encouraging them to explore your site further. See the following step by step guide for creating a good custom 404 page.
Step 1: Set Up .htaccess File
First, you need to add the following code to your
.htaccess file in your root folder.
ErrorDocument 404 /404.html
If your website does not have a
.htaccess file, you need to create one and add above code.
Step 2: Design a Custom 404 Page
After finishing with
.htaccess file, you need to create and design your
404.html page using your favorite HTML editor.
Here are some suggestions for creating an effective 404 page that can help keep visitors on your site:
You see the real word examples of websites with great custom 404 pages from the Web such as Microsoft.com, Lego.com, Disney.com, Github.com and Wufoo.com.