I have domain.com and domain.com.au - what's the htaccess rewrite rule to rewrite it all to www.domain.com.au ? domain.com www.domain.com domain.com.au all should go to > www.domain.com.au
RewriteCond %{HTTP_HOST} (www\.)?domain\.com(\.au)? RewriteRule (.*) http://www.domain.com.au/$1 [R=301,L] Code (markup):