[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Apache redirect question
- Subject: [ale] Apache redirect question
- From: jimpop at yahoo.com (Jim Popovitch)
- Date: Fri, 15 Sep 2006 18:45:52 -0400
- In-reply-to: <[email protected]>
- References: <1158354935.27987.7.camel@localhost> <[email protected]>
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.