8

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?

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

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.

2

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

Custom Error Responses

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy