How can I nice 404 page on my website as shown here : http://www.tecrux.com/2010/12/02/30-best-funny-and-entertaining-404-pages/?

link|improve this question
We dont know what server you use. – WTP Jan 1 '11 at 16:11
feedback

migrated from stackoverflow.com Jan 1 '11 at 17:32

This question came from our site for professional and enthusiast programmers.

3 Answers

It is not possible to customize your 404 error page if your web host has not enabled this facility for your website. Usually ,most of the hoster do provide this facility eneabled , check with hosting provider first. if option enabled , it is very easy to make customized 404 Page

  1. Create a file named .htaccess using any text or PHP editor and put this little code there:

    ErrorDocument 404 /404.php 
    

    I named this custom page 404.php, but you can choose your own.

  2. Create the custom 404.php (PHP or HTML page) in your HTML or PHP editor. (Make sure the name matches the one you mention in the above line in the .htaccess file)

  3. Save it in the directory where your .htaccess file and rest of the files exists. Make sure the path entered in step 1 is the same while uploading the file.

  4. Check the result. If there are any errors, check your file path.

link|improve this answer
feedback

I think you are asking how to post one up. Here's the link: http://www.thesitewizard.com/archive/custom404.shtml

link|improve this answer
feedback

This question belongs on Server Fault, it's a server administration question. To answer it requires knowing what webserver you're using, Generally you want to find the error document configuration

Here's what you need in apache http://bignosebird.com/apache/a7.shtml ErrorDocument 404 /path/to/file

link|improve this answer
Aren't you already posting this on Server Fault? – random Mar 2 '11 at 18:58
It was moved from stackoverflow if memory serves – Richard June Mar 2 '11 at 21:05
feedback

Your Answer

 
or
required, but never shown