Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I am new to managing websites and just set up a personal website for myself.

I had like to replace 404 Not Found Error page, in the same way many websites do it.

How do I go about it?

share|improve this question
1  
Are you using Apache, IIS, or ..? –  danlefree Nov 13 '10 at 6:05
    
Danlefree is right, it depends on what web server you are using. On IIS its under the custom error pages section of IIS management console. If you are on linux then you are likely apache. If you are hosting on windows then its either Apache or IIS but likely IIS. –  Frank Nov 13 '10 at 8:44
    
Apache. And sorry for not mentioning this earlier. –  Tim Nov 13 '10 at 12:36
add comment

2 Answers 2

up vote 6 down vote accepted

For apache:

Create a file with the name .htaccess put it in the root of your website and inside that file write:

ErrorDocument 404 /notfound.html

Instead of /notfound.html write the path to your 404 page.

share|improve this answer
    
Thank you for this. –  Tim Nov 13 '10 at 15:15
add comment

you can found here how to do what you want with Apache HTTPD:

Custom Error Responses

share|improve this answer
    
Thanks (7 more character) –  Tim Nov 13 '10 at 15:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.