httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <>
Subject Re: .htforward anyone???
Date Tue, 04 Apr 1995 00:05:28 GMT

On Mon, 3 Apr 1995, Andrew Wilson wrote:

...about the need to have redirecting a non-conf-file thang....

> All this is semantically the same as specifying a cgi-script file-type in the
> .conf files, and making each 'redirecting' script fool the server into issuing
> a redirect.  I don't understand how the .map/.var thing works yet so I'll bluff.
> Just assume that the server knows that when you 'ask' for index.html you really
> mean 'index.redirect'.  index.redirect could look like:
> --- cut here ---
> #!/usr/local/bin/perl
> print "Location:\n\n";
> --- cut here ---

Turn on MultiViews for that directory, and instead of "index.redirect", 
rename it "index.html.cgi".  This will (probably) even work where the 
DirectoryIndex has been set to "index.html" and the request comes in for 
just the directory, without the "index.html".

Don't forget to put in a "Status: 302" line too, that'll speed things up 
(right guys?)



View raw message