Hello, I currently have TWO domain names redirecting to one website.
So, for instance, “mysite1.com” is the main URL.
Now, if someone types in “mysite2.com” it will show the “mysite1.com” contents but still keep the “mysite2.com” URL intact in their browser window, which is want I want.
But, I want to force the “www.” in front of these URLs. I am using this code but there is a problem:
RewriteCond %{HTTP_HOST} !^www\.mysite1\.com$ [NC]
RewriteRule .? http://www.mysite1.com%{REQUEST_URI} [R=301,L]
The problem is whenever someone types in “mysite2.com” it will show the “mysite1.com” URL in the browser window and will not keep the “mysite2.com” URL intact. Is there anyway around this?
Thanks for your help!