bratsun
4/30/2014 - 6:55 AM

Redirect to HTTPS using .htaccess

Redirect to HTTPS using .htaccess

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