Force Https
RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^domainname\.com* RewriteRule ^(.*)$ https://www.domainname.com/$1 [L,R=301]