\\ How to you create a custom 404 error pages

404 Error... How do you create one of these custom 404 error pages?

One way you can try is this:

Your .htaccess File

This is the file that will do the trick for you. You should already have one waiting inside of your Web site directory. If you don't, then you'll need to create it.

FTP into your server so you're looking at the top level directory where you store your Web page files. This should be the directory that contains your home page document. Look for the .htaccess file there. Again, if you don't find it , then you'll need to create it.
Please notice the dot (.) starting it off.

If no such file will exist, and you can simply create one with a text editor (such as Notepad on Windows). if you are using Notepad on Windows, you will need to enter ".htaccess" (including the opening and closing quotation marks) into the "Save As" dialog box when you create the file, otherwise Notepad will append a ".txt" extension when it creates the file.

Let's Edit It

Add this to the .htaccess file:
ErrorDocument 404 http://www.domain.com/404page.html

That's it. Just that line. (Yes, it should all be on one line--some smaller computer screens may bump it down to two--get it all on one.) Where I have http://www.domain.com/404page.html is where you place the full URL pointing to that new, fancy 404 Error page you've created.
...you have already created an error page, right?

below is what it should look like... see the black arrow... I also have some wordpress info in the file too, you can ignore that of course!

htaccess 404 error image


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


if the above instructions fail to work...

You can try is this other way below:

Step One: Creating/Modifying the .htaccess File

This step may not be necessary in all situations. Some web hosts already configure their web server so that it will look for a specific file in your web directory when a certain document cannot be found. If so, simply skip this step.

If your web server is not an Apache web server, you will have to find out from your web host what you need to do to enable the server to serve your customized file when a file cannot be found. This article only applies to websites that are hosted on Apache web servers.

Add this below to the .htaccess file:

---> ErrorDocument 404 http://www.domain.com/404page.html

Just like in the screen shot above...

And of course you gotta save the file and upload it to your web hosting server!!!

***Contact us If you can't figure it out and we will help you :)