Skip to content

Instantly share code, notes, and snippets.

@pawiromitchel
Created August 23, 2019 11:51
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 pawiromitchel/012e5dc1e38e80e3e1ee3acd4a6914b1 to your computer and use it in GitHub Desktop.
Save pawiromitchel/012e5dc1e38e80e3e1ee3acd4a6914b1 to your computer and use it in GitHub Desktop.
Redirect http to https
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment