Creating a custom 404 Page

In this tutorial we are going to show you how to create a custom 404 page for your website. A 404 page is the error page which comes up when a user tries to go to a page which doesn’t exist on the server, this can happen when someone a link to your site is outdated i.e. you have removed that page.
To direct to the user to error page you need one line of code in your .htaccess file and here it is:
ErrorDocument 404 /404.html
This then sends any user who finds an error page to the “/404.html” page you don’t have to name it 404.html it can be called whatever you want.
Here is an example of a custom 404 error page used on Thomas Hardy’s portfolio.

If you have your own custom 404 page why not leave a comment with a link to it and we will include it out next post on 404 pages.
If you enjoyed this post you might enjoy these:





2 Comments to “Creating a custom 404 Page”