Skip to content

Instantly share code, notes, and snippets.

@RickCogley
Created January 19, 2015 09:28
Show Gist options
  • Save RickCogley/bfeaac629356848178b3 to your computer and use it in GitHub Desktop.
Save RickCogley/bfeaac629356848178b3 to your computer and use it in GitHub Desktop.
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment