Skip to content

Instantly share code, notes, and snippets.

@localhost8080
Created July 13, 2015 08:22
Show Gist options
  • Save localhost8080/f031116ec8641e92a92d to your computer and use it in GitHub Desktop.
Save localhost8080/f031116ec8641e92a92d to your computer and use it in GitHub Desktop.
301 from http to https
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