Forum Moderators: phranque
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.domain\.com
RewriteRule .* [www2.domain.com%{REQUEST_URI}...] [L]
However I want 'www' to stay in the address bar, while 'www2' is the site that is queried.
I read that you just need to remove the http:// to make it internal, e.g.:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.domain\.com
RewriteRule .* www2.domain.com%{REQUEST_URI} [L]
But this gives me a 400 bad request - any ideas?