[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Re-Directing users on a 404 error



> You could also do this like I have in changing your
> /etc/httpd/conf/srm.conf file to look like
>
> ErrorDocument 401 /cobalt_error/authorizationRequired.html
> ErrorDocument 403 /cobalt_error/forbidden.html
> #ErrorDocument 404 /cobalt_error/fileNotFound.html
> ErrorDocument 404 http://www.saintspc.com.au/missing.php
> ErrorDocument 500 /cobalt_error/internalServerError.html

To change this for every site on the server and let each site have its
own customized error page, do this instead:
ErrorDocument 401 /401.html
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
ErrorDocument 400 /500.html

Then the site admin simply needs to put their own customized 401.html,
403.html, 404.html and 500.html into their web directory.
Or they can customize further with an .htaccess file if you've given
their directory permissions to do that in the srm.conf.

For waaaaaaay more info on this (it's been beaten to death), check the
archives.

CarrieB