Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
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

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

Your Answer


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