I have a .htaccess related question.
For example, if I have two domain, a.com and b.com. All referring to one host (b.com is domain alias of a.com). I want visitor t
You could try with 2 rewrite rules
RewriteEngine On RewriteCond %{HTTP_HOST} ^a\.com$ [NC] RewriteRule ^(.*)$ http://www.a.com/$1 [L,R=301] RewriteCond %{HTTP_HOST} ^b\.com$ [NC] RewriteRule ^(.*)$ http://www.b.com/$1 [L,R=301]