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

RE: WML, HOME~ and the redirections



Hi,

Have you tried using "ErrorDocument 404
http://www.yoursite.com/notfound.html"? Slapping the full "http://" should
make Apache issue and external redirect.

The documentation on the ErrorDocument directive states that:

-----
In the event of a problem or error, Apache can be configured to do one of
four things,
1. output a simple hardcoded error message
2. output a customized message
3. redirect to a local URL to handle the problem/error
4. redirect to an external URL to handle the problem/error
-----

What you want is option four, and this is achieved through giving apache a
full URL. BTW, the ErrorDocument documentation is at:
      http://www.apache.org/docs/mod/core.html#errordocument

Hope this is not redundant information, I've not been following this
conversation. Please excuse me if this was.

 - David Harris
   Principal Engineer, DRH Internet Services


-----Original Message-----
From:	owner-sw-wml@engelschall.com [mailto:owner-sw-wml@engelschall.com] On
Behalf Of Stephane Bortzmeyer
Sent:	Thursday, January 14, 1999 7:25 AM
To:	sw-wml@engelschall.com
Subject:	Re: WML, HOME~ and the redirections

On Wednesday 13 January 1999, at 10 h 36, the keyboard of Stephane
Bortzmeyer
<bortzmeyer@pasteur.fr> wrote:

> On Tuesday 12 January 1999, at 17 h 10, the keyboard of Stephane
Bortzmeyer
> <bortzmeyer@pasteur.fr> wrote:
>
> > The problem is that HOME is expansed at compile time, in the directory
of
> > forbidden.wml. It makes:
> >
> > <A HREF="../search/">

After discussions with the people of Lynx, it seems there is no easy
solution since Apache's ErrorDocuments are not HTTP redirections (despite
what I said in the subject) and so the client has no way of knowing the base
URL. So, is there a way to ask WML to replace $(HOME) (HOME is defined as
~.) by a server-relative link and not a relative-one ? A command-line
option?

Or should I redefine HOME for my ErrorDocuments? Since WML does not accept
'HOME=' or 'HOME=""', I had to do a 'HOME=http://www.pasteur.fr' which I do
not find elegant.




______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com

______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com