Skip to content

Instantly share code, notes, and snippets.

@perminder-klair
Created July 23, 2015 14:02
Show Gist options
  • Save perminder-klair/c316bc127c99e78663fa to your computer and use it in GitHub Desktop.
Save perminder-klair/c316bc127c99e78663fa to your computer and use it in GitHub Desktop.
Http to Https redirect
RewriteCond %{HTTPS} !=on
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