RewriteCond %{HTTPS} on [NC,OR]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
