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

Re: [cobalt-users] custom 404 pages on RaQ4



> > 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

Or you can send them somewhere

ErrorDocument 404 http://www.mydomain.com
ErrorDocument 401 http://www.domain.com
ErrorDocument 500 http://www.anotherdomain.com
ErrorDocument 403 http://www.somedomain.com

Zeffie