From 34ee711182cfa0e6d556133bbfe21ed3ba7bd684 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Fri, 24 Apr 2020 18:59:41 +0200 Subject: [PATCH] .htaccess token Fix --- .htaccess | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.htaccess b/.htaccess index 14a6142..54bbdf8 100644 --- a/.htaccess +++ b/.htaccess @@ -4,6 +4,10 @@ RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] +#token to HTTP_AUTHORIZATION +RewriteCond %{HTTP:Authorization} ^(.) +RewriteRule . - [e=HTTP_AUTHORIZATION:%1] + # serve all files from public subfolder RewriteCond %{REQUEST_FILENAME} !.php RewriteCond %{REQUEST_FILENAME} \.