Skip to content

Instantly share code, notes, and snippets.

@mingodev
Created September 11, 2019 19:27
Show Gist options
  • Save mingodev/5cb44ae25ab43704598315a2424e850f to your computer and use it in GitHub Desktop.
Save mingodev/5cb44ae25ab43704598315a2424e850f to your computer and use it in GitHub Desktop.
Force SSL redirect
#Force https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L,NE]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment