Skip to content

Instantly share code, notes, and snippets.

View ajdi's full-sized avatar

adamd ajdi

View GitHub Profile
@ajdi
ajdi / forceHTTPS.htaccess
Created May 23, 2018 05:22
Force https:// on all requests with Apache .htaccess rules.
# Force HTTPS on all requests.
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]