Just another Perl shrine | |
PerlMonks |
Re: Perl script to handle requests to a http://.../path/*by revdiablo (Prior) |
on Sep 12, 2003 at 02:24 UTC ( [id://290899]=note: print w/replies, xml ) | Need Help?? |
You might want to look into mod_rewrite for apache. It will do what you want and more. It's pretty neat -- you can transparently apply regular expressions to urls to rewrite them to whatever you want. So you could, for example, match /thedirectory/(.*) and rewrite it as some.cgi?blah=$1. The user sees a pretty url, and you get to use an arbitrary CGI. Very handy.
In Section
Seekers of Perl Wisdom
|
|