Skip to content

Instantly share code, notes, and snippets.

RewriteCond %{HTTP_HOST} ^(www\.)(.*) [NC]
RewriteRule (.*) https://%2%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^(www\.)(.*) [NC]
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
/*
Canbe edited for Bootstrap 3
Not originally my idea but I haven't been able to find the article I got the idea from.
Makes more sense to use this than manual media queries.
John Camacho
Nov 2 2018