Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


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

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-03-29 11:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found