title: redirect domain.com to www.domain.com with htaccess
body: <p>How to redirect an 'empty' subdomain <a href="http://domain.com" rel="nofollow">http://domain.com</a> to <a href="http://www.domain.com" rel="nofollow">http://www.domain.com</a> using htaccess rewrite engine. It has to be a 301 permanent redirect and convey the rest of the url and query string.</p>