Skip to content

Instantly share code, notes, and snippets.

@Radmation
Created September 12, 2019 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Radmation/7ba633e1d43ba213e5bce227fd601029 to your computer and use it in GitHub Desktop.
Save Radmation/7ba633e1d43ba213e5bce227fd601029 to your computer and use it in GitHub Desktop.
Force HTTPS .htaccess - typical servers
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment