[REBOL] Re: A bit OT: CGI question
From: hallvard:ystad:helpinhand at: 20-Feb-2002 9:18
Dixit Robert M. Muench (20.58 19.02.2002):
>Hi, I use a Rebol script that takes the input from a form and sends an email and
>returns a confirmation page to the client. The rebol script is located in
>cgi-bin/ directory the web pages are located in a html/ directory.
>
>The problem is that the references inside the confirmation page a now all
>relative to the cgi-bin/ directory and not to the html/ directory. Any idea how
>this can be fixed?
If you print out the following inside the HTML <HEAD>-tag, this shoud no longer be a
problem:
<BASE HREF="thehtmldirectory">
>Next thing is that the displayed URL in the address entry field, shows the link
>& name of the Rebol cgi script and not the URL of the conformation page. Robert
This is normal behaviour. The only workaround I know for this, is to send the originating
form to some other page, say htmldirectory/confirmation.html, and then use a scriptalias
in the httpd.conf file to redirect it to your rebol-script.
~H