From 3b97e50b478c04108170955f8992ec16f937e5d8 Mon Sep 17 00:00:00 2001 From: Olivier Douville Date: Wed, 8 Nov 2023 23:57:43 +0100 Subject: [PATCH] Update .htaccess (redirection HTTP -> HTTPS) --- connecthys/.htaccess | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/connecthys/.htaccess b/connecthys/.htaccess index 1442812..d7e093f 100644 --- a/connecthys/.htaccess +++ b/connecthys/.htaccess @@ -3,4 +3,6 @@ AddHandler cgi-script .cgi RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f -RewriteRule ^(.*)$ connecthys.cgi/$1 [QSA,L] \ No newline at end of file +RewriteRule ^(.*)$ connecthys.cgi/$1 [QSA,L] +RewriteCond %{SERVER_PORT} 80 +RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]