Monday, August 24, 2009

Error 404 Apache : How to configure Error 404 page in Apache Server

Error 404 PageIt is extremely easy to configure the Apache server to serve your customized error 404 page.As mentioned in my previous post, create an error404page.html page for your server to serve whenever the visitors looking for a page which does not exists.

In your server you can find httpd.conf file.

Error 404 Apache Server

Open the conf file. At the bottom of the file you can find the section as mentioned in the image. This is where you have to edit.

These directives shown in the image would have been commented by default. What you have to do is, just un-comment the directive for ErrorDocument and then change the path to point to your customized error 404 page.

ErrorDocument 404 / error404page.html

If you are not able to find and edit the conf file, create an .htaccess file with your text editor. Add the following line in it and save.

ErrorDocument 404 / error404page.html

Now upload .htaccess file in your root folder where your index file is present

After uploading search for a page which is not present in you site and check whether the Apache server serves the customized error 404 page.

If you have any suggestions on this post please comment it and if you had liked it please subscribe to my blog to receive my latest blog posts.

If you find this post more useful then, Please

Subscribe to this Blog:

Click here to Subscribe to FREE email updates from "Internet Marketing Insights"

Stumble ThisFav This With TechnoratiAdd To Del.icio.usDigg ThisAdd To RedditAdd To FacebookAdd To Yahoo

People who read this post also read :



Creative Commons License

Blog directory Internet Marketing Insights - Blogged Internet Blogs - Blog Catalog Blog Directory