RedirectMatch on a second domain

Giganews Newsgroups
Subject: RedirectMatch on a second domain
Posted by:  rcherny (rcher…@gmail.com)
Date: Tue, 29 Jul 2008

Ok, for once I can get htaccess and Mod Rewrite to do a lot of what I
need it to do, but unfortunately, it's not what I need in this
instance.

And this seems like it should be really, really easy ... but I can't
get it to work to save my life for some reason (probably because I
haven't put the time in to really, really learn apache and regex but
anyway).

Basically there's two domain names on the same virtual site.

One needs to redirect, with the trailing folders/queries, to a
subfolder.

I don't want rewrite, since I want the sub-folder to show.

Basically:

example01.com needs to say example01.com

example02.com/* needs to be example02.com/es/*

This should be really, really easy, right?

I've been assuming I need to match on the domain using RedirectMatch
and just redirect to the sub-folder?

Replies