Skip to content

Instantly share code, notes, and snippets.

@ohvitorino
Created July 3, 2018 08:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohvitorino/e1ecf9d4aad615935e469929847ae55c to your computer and use it in GitHub Desktop.
Save ohvitorino/e1ecf9d4aad615935e469929847ae55c to your computer and use it in GitHub Desktop.
HTTPS
# Redirect to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment