this is extraordinarily confusing for me, and I would appreciate any
help! I'm lost!
I've got a set of about 20 domains like this:
www.fooBAR.com
www.fooBAZ.com
www.fooBOO.com
I would like users coming to these urls to be redirected to the following:
www.realdomain.com/BAR
www.realdomain.com/BAZ
www.realdomain.com/BOO
I've tried so many things, I can't even imagine what I'm doing wrong.
The last thing I tried was something along the lines of:
<VirtualHost ......>
(the usual here)
RewriteCond %{HTTP_HOST} ^www\.foo([a-z]+)\.com [NC]
RewriteRule ^www\.foo([a-z]+)\.com/(.*)
http://www.realdomain.com/$1/$2 [L,R]
</VirtualHost>
This is on a system with many virtual hosts, if that point matters.
What's the best way to do this? Any help is greatly appreciated!