Force ssl

This commit is contained in:
Matt Marcha 2020-12-08 11:18:05 +01:00
parent fac7f4230e
commit be8172e817

View file

@ -1,6 +1,10 @@
# REecriture et redirections
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html$ /$1 [L,R=301]