No matter how much you plan for your site, things can still go
wrong. Learn how to handle broken links and other errors on your
site with customized error pages.
The default error page for Wings tells your visitor that the Web page wasn't found, or that there was an error, but doesn't provide any more help than a few basic links. The Wings page’s style also will not match the style of your site. With your own error pages, you have the opportunity to provide helpful navigation, give support contact information and maintain your site’s visual consistency.
ErrorDocument 404 /PATH_TO_YOUR_CUSTOM_PAGE/error404.html ErrorDocument 500 / PATH_TO_YOUR_CUSTOM_PAGE/error500.html
ErrorDocument 404 /academic/department/abc/error404.html
ErrorDocument 404 /error404.html
If things don't work correctly, first check your permissions. You may need to make the .htaccess and error files readable:
chmod u+rwx,g+rx,o+rx .htaccess chmod u+rwx,g+rx,o+rx error404.html
You may also want to add a blank line at the end of the .htaccess file.