1

I am trying to get any HTTP GET requests to one directory on my server (/temp/downloads/target) to be redirected to a perl cgi script....basically making the request: http://www.myserver.com/cgi/perlscript.cgi?path=target

Can this be easily done with htaccess?

4

1 回答 1

2

Try the following:

RewriteBase /

RewriteEngine on
Options +FollowSymLinks

RewriteRule ^temp/downloads/(.*)$ /cgi/perlscript.cgi?path=$1 [L]
于 2013-09-17T20:40:23.050 回答