| Ligne 12 : | Ligne 12 : | ||
RewriteCond %{HTTPS} off | RewriteCond %{HTTPS} off | ||
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [QSA] | RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [QSA] | ||
}} | }}<br> | ||
== Liens Externes == | == Liens Externes == | ||
# Redirect HTTPS to HTTP
RewriteCond %{HTTP:X-Forwarded-Proto} =https
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,QSA]
# Redirect HTTP to HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [QSA]