 RewriteEngine on  # Change domain.com to be your primary domain again. # Change 'subfolder' to be the folder you will use for your primary domain # followed by / then the main file for your site, index.php, index.html, etc. RewriteCond %{HTTP_HOST} ^(www\.)?domain-b\.com$ [NC] 