Skip to content

Instantly share code, notes, and snippets.

@koffisani
Created March 18, 2016 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save koffisani/552bc161cb6fcac43c84 to your computer and use it in GitHub Desktop.
Save koffisani/552bc161cb6fcac43c84 to your computer and use it in GitHub Desktop.
Pour forcer l'utilisation d'une connexion SSL sur votre site web
###############################################
#Pour forcer l'utilisation d'une connexion SSL sur votre site web, veuillez placer le contenu suivant dans un fichier .htaccess
###############################################
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment