Forum Moderators: phranque
Basically, I need to redirect all requests that to sub.example.com to sub.example2.com, preserving the full request_uri. So [sub.example.com...] goes to [sub.example2.com...] I know what example.com and example2.com are, so I can set those statically, but I don't know what "sub" is going to be; they're added dynamically.
My trouble is in figuring out how to extract "sub" out of the original URL to put into the Rewrite Rule. I can't find any good example of how this is done.