[ale] Apache redirect question

Jim Popovitch jimpop at yahoo.com
Fri Sep 15 18:45:52 EDT 2006


On Fri, 2006-09-15 at 18:08 -0400, Jerry Yu wrote:
> Did you try this :
> 
> RedirectMatch !^/cgi-bin/(test.pl|test2.pl|other.pl)
> http://www.newsite.net
> 
> since "This directive [redirectMatch] is equivalent to Redirect, but
> makes use of standard regular expressions, instead of simple prefix
> matching. "

I have not tried that yet, but I might.  One concern is that parenthesis
in RedirectMatch are normally used to identify URL portions to pass to
the redirected URL like this:

 RedirectMatch  ^/query.pl?q=(.*)  http://google.com/search?q=$1

Thanks though, I'll give it a try.

-Jim P.






More information about the Ale mailing list