Link to home
Start Free TrialLog in
Avatar of olevt
olevt

asked on

How to funnel all site URLs through a single CGI script?

I'm writi2ng a web application and need all POSTs and GETs to the site to be passed to a single Perl script. I'll be running it on Apache, so I'm really looking for what to add to and/or change in the httpd.conf file.

Sample URLs would include (note the non-extension names):
http://www.xyz.com/
http://www.xyz.com/public/home
http://www.xyz.com/private/dashboard
and I'd like to have the extra paths beyond .com to be passed to the script.

I've been scouring several books and trying different snippets, but now I've really confused myself.

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of caterham_www
caterham_www
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of olevt
olevt

ASKER

Thanks, caterham!

By the looks of it, your suggestion appears to be exactly what I need. And your tip about image files was like reading my mind about the future!