Perlaccess : Tutorials
Custom 404 Page (8.9)
by Jacob A. Wheeler
http://www.bigresources.com

Custom 404 Page

(.htaccess file - can create in notepad, or dos 'edit' - example file)
ErrorRedirect 404 http://www.domain.com/404.html

NOTE: Be sure to update domain.com with your domain name!

The above code, when placed in your htaccess file, will intercept all 404 errors and redirect the user to a page you specify. In this case, the user will be redirected to a 404 page, located at: http://www.domain.com/404.html. This allows you to create your own custom 404 error page, instead of forcing your users to see a generic error page produced by the server.

Trapping Internal Server Errors

<< Back