[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Apache redirect question



I need to change an existing apache2 server to redirect all but a
handful of URLs to an external site.  Right now I can redirect all but
one URL using the following syntax:

    RedirectMatch !^/cgi-bin/test.pl http://www.newsite.net

The above transfers all incoming requests to www.newsite.net, but still
allows for access to www.oldsite.net/cgi-bin/test.pl

What I want to do is also allow access to the following:

    www.oldsite.net/cgi-bin/test2.pl?blah
    www.oldsite.net/cgi-bin/other.pl

Any idea on how this would be accomplished while still redirecting
everything else to www.newsite.net?

TIA,

-Jim P.