How to make a custom 404 Not Found page

Blog post

Author
Message

Rocket Man
Posts: 383
Posted on: 2012-10-22 21:33:43.000
This is something really simple, the perfect assignment for a Monday morning.

Go to your site's root directory (usually /var/www) and edit the .htaccess file (type sudo nano .htaccess)

Add the following line to the end of the file:

ErrorDocument 404 /rockets-404.lsp

Now any 404 (page not found) errors will redirect to this page instead of displaying the generic Apache error.


Views: 4882