[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] custom 404 pages on RaQ4
- Subject: RE: [cobalt-users] custom 404 pages on RaQ4
- From: "Carrie Bartkowiak" <admin@xxxxxxxxxxxxxxxxxx>
- Date: Tue Oct 31 09:35:03 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> I am having a problem with custom 404 error pages on a raq4. On any of
> the raq3's that I have tried this on,
> ErrorDocument 404 http://www.yourdomainname.com/404.html
> saved as .htaccess through notepad, has worked without any problems. But
> when I try the same thing on the raq4, it doesn't work. Has anyone
> experienced this problem?, or is it just me?
> thanks in advance
This is probably not the answer you were looking for, but it is an
alternative that you might find useful.
In /etc/httpd/conf/srm.conf
At the bottom you'll find a section on ErrorPages. You can change this so
that you don't need to use the .htaccess method - but of course this
probably voids your warranty so be advised.
Here's what mine looks like; I left the originals intact but commented out
in case I needed to put them back, and I left the 500 error intact for
better debugging of scripts.
#Changed so that users can automatically set their own error files without
#using an .htaccess file. Original lines are commented below for debugging
ErrorDocument 401 /401.html
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
#We leave 500 as-is so that people can better debug scripts
#ErrorDocument 401 /cobalt_error/authorizationRequired.html
#ErrorDocument 403 /cobalt_error/forbidden.html
#ErrorDocument 404 /cobalt_error/fileNotFound.html
ErrorDocument 500 /cobalt_error/internalServerError.html
Carrie Bartkowiak