On Fri, Oct 08, 1999 at 04:25:39PM +0200, Terje Malmedal wrote:
> Inside a <Perl> section I want to configure mod_rewrite dynamically,
> this works:
>
> $RewriteRule = "/cgi-bin/printenv /cgi-bin/slave.pl [PT]";
>
> If I do this:
>
> $RewriteRule = "/cgi-bin/printenv /cgi-bin/slave.pl [PT]";
> $RewriteRule = "/cgi-bin/test /cgi-bin/slave.pl [PT]";
>
> the last RewriteRule will hide the first one.
>
> The following attempts to not work at all:
> push(@RewriteRule , "/cgi-bin/printenv /cgi-bin/slave.pl [PT]");
> push(@RewriteRule , "/cgi-bin/printenv" , "/cgi-bin/slave.pl [PT]");
> push(@RewriteRule , "/cgi-bin/printenv" , "/cgi-bin/slave.pl", "[PT]");
> $RewriteRule{'/cgi-bin/printenv'} = "/cgi-bin/slave.pl [PT]";
>
> Am I missing something obvious?
Have you tried using the 'L' flag (see Apache manual) this will stop
further processing, ie:
$RewriteRule = "/cgi-bin/printenv /cgi-bin/slave.pl [PT,L]";
$RewriteRule = "/cgi-bin/test /cgi-bin/slave.pl [PT,L]";
--
I've been dead before. - Captain Spock, Star Trek VI
Mike Hall <[EMAIL PROTECTED]>, ICQ: #37292579, http://www.riverside.org
System Administrator (MH993) (*nix, OS/2 certified - C, Perl, CGI hacker)