Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by tachyon (Chancellor)
on Sep 15, 2003 at 02:50 UTC ( [id://291477]=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://291477]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-25 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found