in reply to Re: Re: Perl script to handle requests to a http://.../path/*
in thread Perl script to handle requests to a http://.../path/*

Just apply a RewriteCond that says NOT /cgi-bin/blah first. Then the RewriteRule will only get invoked on the first pass, not once it has been done (untested)...

There are also other hooks to prevent looping (they let you see it this request is a subrequest of the original) but that should do the trick.

RewriteCond ! ^/cgi-bin/myscript.pl.*$ RewriteRule ^(.*)$ /cgi-bin/myscript.pl?$1

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Replies are listed 'Best First'.
Re: Re: Re: Re: Perl script to handle requests to a http://.../path/*
by xiper (Friar) on Sep 15, 2003 at 03:05 UTC
    Thanks, although i managed to figure out a similar solution myself (although yours make more sense!).

    - ><iper

    my JAPH: print"Just another Perl hacker\n"; # ^ look, no space! pretty tricky huh?