Skip to content

Instantly share code, notes, and snippets.

@thierrypigot
Created August 19, 2015 15:38
Show Gist options
  • Save thierrypigot/2f3001af31f7335715ae to your computer and use it in GitHub Desktop.
Save thierrypigot/2f3001af31f7335715ae to your computer and use it in GitHub Desktop.
Forcer un site à être en https
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [QSA,R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment