From fa698604b08ea853a6ec73b35ca564ff1a68ea66 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 22 Oct 2021 18:31:48 +0200 Subject: [PATCH] Redirection http vers https si url intelligente --- core/module/config/config.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/module/config/config.php b/core/module/config/config.php index 83b83d63..87e751f4 100644 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -562,6 +562,8 @@ class config extends common { "\tRewriteCond %{REQUEST_FILENAME} !-f" . PHP_EOL . "\tRewriteCond %{REQUEST_FILENAME} !-d" . PHP_EOL . "\tRewriteRule ^(.*)$ index.php?$1 [L]" . PHP_EOL . + "\tRewriteCond %{SERVER_PORT} 80" . PHP_EOL . + "\tRewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]" . PHP_EOL . '', FILE_APPEND );