From 7c07b9ece89fad8c255a62059a704ef39e00f8f5 Mon Sep 17 00:00:00 2001 From: Cifram <56471347+Ciframa@users.noreply.github.com> Date: Fri, 28 Jun 2024 13:42:42 +0200 Subject: [PATCH] Update .htaccess --- Fitmo_backend/public/.htaccess | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Fitmo_backend/public/.htaccess b/Fitmo_backend/public/.htaccess index 49cb758..371ea03 100644 --- a/Fitmo_backend/public/.htaccess +++ b/Fitmo_backend/public/.htaccess @@ -1,9 +1,11 @@ + RewriteEngine On +RewriteCond %{HTTPS} !=on +RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] + + - - Options -MultiViews -Indexes - - RewriteEngine On + # Handle Authorization Header RewriteCond %{HTTP:Authorization} . @@ -18,4 +20,5 @@ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] - \ No newline at end of file + +