Send Error 404 Page not found from Apache

By | August 15, 2009

If you want to set an error page which will be shown everytime a user tries to access something that isn’t on your server, the best way to do this is from Apache configuration. All you have to do is to insert the following line into httpd.conf or other configuration file.

ErrorDocument 404 http://domain.com/404_friendly_error_page.htm

Cheers,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.