From b3b5ee6377bfa564126cdaaf09a06079a70a1c36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Dufraisse?= Date: Wed, 20 Mar 2024 10:51:18 +0100 Subject: [PATCH] fix(htaccess): check if module activated --- src/.htaccess | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/.htaccess b/src/.htaccess index 417af5a..566cddc 100644 --- a/src/.htaccess +++ b/src/.htaccess @@ -1,12 +1,16 @@ # Prevent viewing of htaccess file. - order allow,deny - deny from all + + Order Allow,Deny + Deny from all + # Prevent directory listings Options All -Indexes ErrorDocument 404 /404.html -RewriteEngine On -RewriteCond %{HTTP:X-Forwarded-Proto} !https [OR] -RewriteCond %{HTTP_HOST} ^astrolabe\.coop [NC] -RewriteRule ^ https://www.astrolabe.coop%{REQUEST_URI} [L,NE,R=301] + + RewriteEngine On + RewriteCond %{HTTP:X-Forwarded-Proto} !https [OR] + RewriteCond %{HTTP_HOST} ^astrolabe\.coop [NC] + RewriteRule ^ https://www.astrolabe.coop%{REQUEST_URI} [L,NE,R=301] +