ccurtin
3/20/2017 - 4:54 PM

Force HTTPS for site and any requested resources

Force HTTPS for site and any requested resources

# force site HTTPS
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# force any requested file to HTTPS. CSS, JS, images, etc.
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]