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

Re: [cobalt-users] .htaccess for ErrorDocument



Paul,

Can you tell me what Cobalt product you are using? If it is a RaQ (any
model) -- what is your AllowOverride directive set to in
"/etc/httpd/conf/access.conf" under <Directory /> and <Directory
/home/sites/>. I am still unable to use any file outside of the "/error/"
alias as an ErrorDoocument. I have both of mine set to AllowOverride All -
and this is the only thing that looks like it should effect my use of
.htaccess. I appreciate your response. Thank you,

Kyle Scholz

----- Original Message -----
From: Paul Alcock <webmgr@xxxxxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Tuesday, August 08, 2000 8:52 AM
Subject: RE: [cobalt-users] .htaccess for ErrorDocument


> Kyle, I tried your method and it worked fine.
> Here's the part of my test .htaccess file concerned.
>
> ErrorDocument 404 /index.html
> This worked fine and moved the visitor to the home page
> although the browser will display the URL requested.
>
> I also tried to use a relative path
> ErrorDocument 404 ./index.html
> But that failed
>
> I then tried a page deeper in the tree
> ErrorDocument 404 /Affiliates/index.html
> And that Correctly directed the visitor to the intended page.
>
> Paul.
>
>
> > RaQ2. Apache web server provides a method for providing directory
specific
> > rules in a file that won't effect settings for the rest of the
> > system. These
> > settings can be placed in ".htaccess" in whichever directories
> > they need to
> > apply to. I experimented with the file for some time and am still
> > at a loss,
> > but these are my findings.
> >
> > The syntax used to reset the error document is:
> >     ErrorDocument <ErrCode> <Relative Path>
> >
> > I needed to refresh the error page several times in order to get this
> > statement to work:
> >     ErrorDocument 404 /users/admin/api/error.html
> > This is a simple and valid HTML file with no special permissions. When I
> > type in another invlaid URL, it doesn't work again.
> >
> > The RaQ2 (and probably the others) store error documents in a
> > directory that
> > is aliased to "/error/" on all sites on the server. I poked
> > around and found
> > the relative location of the 404 error file and tried this:
> >     ErrorDocument 404 /error/fileNotFound.html
> > This works every time -- and reads identical to the entry in the apache
> > config files.
> >
> > Does anyone have any ideas as to why I'm unable to use my file
> > here instead?
> > The .htaccess file is being parsed every time I reload a page.
> > The location
> > of the error file (which is strictly for testing purposes) is completely
> > valid and can be retrieved by accessing directly (manually typing
> > it into my
> > web browser).
> >
> > I appreciate any comments on the subject. Thank you,
> >
> > Kyle Scholz
> >
> >
> >
> > _______________________________________________
> > cobalt-users mailing list
> > cobalt-users@xxxxxxxxxxxxxxx
> > To Subscribe or Unsubscribe, please go to:
> > http://list.cobalt.com/mailman/listinfo/cobalt-users
> >
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users