So when you go to site2.com you get the correct page?
Try the following in site1.com's document root
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?site1\.com$ [NC]
RewriteRule ^(site2\.com)(/(.*))?$ http://www.$1/$3 [R=301,L]
If you want to add it for another site (site3.net) you add it into the () with site2.com, separating them with a |, eg. ^(site2\.com|site3\.net)(/(.*))?$.