Force HTTPS htaccess

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://whatever.com/$1 [R=301,L]
Comments