in reply to apache RedirectMatch (regexp question)

I don't think you can easily (and certainly not gracefully) accomplish what you want to do with RedirectMatch, but mod_rewrite is excellent for this kind of voodoo...

RewriteEngine On RewriteRule !^/basedirectory/(exceptions|to|the|rule).* - [C] RewriteRule ^/(basedirectory/.*) http://server2/$1

    --k.


Replies are listed 'Best First'.
Re: (OT) Re: apache RedirectMatch (regexp question)
by Cmdr_Tofu (Scribe) on Sep 30, 2002 at 13:00 UTC
    Thank you very much. This works beautifully :)