Skip to content

Instantly share code, notes, and snippets.

@gausoft
Forked from koffisani/force-https-in-htaccess
Created February 5, 2020 09:59
Show Gist options
  • Save gausoft/8082e5030cd37aac7c846f5e17ed8459 to your computer and use it in GitHub Desktop.
Save gausoft/8082e5030cd37aac7c846f5e17ed8459 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