smaller reset larger         

Main Menu

All times are in GMT -7 (DST) :: The time is now 5:07 pm.

Sub Menu

Article Data
Article Ref
8144-YIKL-8840
Date Created
Fri, 7th May 2010
Date Modified
Fri, 15th Apr 2011
 
(Lost?)

   Custom 404 pages

Question 

How do I add a custom 404 page to my website?

Answer 

Utilizing a .htaccess file we can tell our website how to go about showing custom 404 pages.

Adding this line to .htaccess will tell the server what to do when a 404 error hits.

ErrorDocument 404 /404.html

You can make the 404.html whatever file you would like (for example you can make it error.html instead).

Insde the file you can do whatever HTML you would like, you can redirect to your sites homepage for example.

For information on creating .htaccess files see this article

Article Comments 

There are currently no comments.