Skip to content

Instantly share code, notes, and snippets.

@joshhartman
Last active November 16, 2018 18:44
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 joshhartman/474b3fed690e985cff6c853e7bbd181a to your computer and use it in GitHub Desktop.
Save joshhartman/474b3fed690e985cff6c853e7bbd181a to your computer and use it in GitHub Desktop.
Redirect to HTTPS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment