Creating a Custom 404 Page
A 404 error page is when an error message is displayed when a visitor visits a link or site that does not exist. At times, you will find sites that have a custom 404 page as opposed to the normal one that simply shows ‘Not Found’ or a message somewhat similar. This tutorial will teach you how to do this. Note that you should have a working domain or sub-domain for this.Find the .htaccess page in your root directory. If you don’t have one then create one by the exact same name with no file extensions. Remember to create it in your root directory. Now open your .htaccess page and paste in the following code:
Now make a page called missing.php. This is where you put your 404 message / image.
If you call your missing page something else other than missing.php, then you should change the page name in the code from just now.
Test it out to see if it works by typing a broken link of your site. The 404 page that you have just created should appear.