diff --git a/.htaccess b/.htaccess
index 2a6a0cbfac68c..4986f7d380f00 100644
--- a/.htaccess
+++ b/.htaccess
@@ -7,6 +7,10 @@
SetEnvIfNoCase Authorization "(.+)" HTTP_AUTHORIZATION=$1
+
+ SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
+ RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
+
@@ -48,6 +52,8 @@
Header set Cache-Control "max-age=604800"
+
+# PHP 7.x
php_value mbstring.func_overload 0
php_value default_charset 'UTF-8'
@@ -56,6 +62,30 @@
SetEnv htaccessWorking true
+
+# PHP 8+
+
+ php_value mbstring.func_overload 0
+ php_value default_charset 'UTF-8'
+ php_value output_buffering 0
+
+ SetEnv htaccessWorking true
+
+
+
+
+ AddType image/svg+xml svg svgz
+ AddEncoding gzip svgz
+
+
+
+ DirectoryIndex index.php index.html
+
+
+
+ ModPagespeed Off
+
+
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} DavClnt
@@ -68,15 +98,6 @@
RewriteRule ^\.well-known/(?!acme-challenge|pki-validation) /index.php [QSA,L]
RewriteRule ^(?:\.(?!well-known)|autotest|occ|issue|indie|db_|console).* - [R=404,L]
-
- AddType image/svg+xml svg svgz
- AddEncoding gzip svgz
-
-
- DirectoryIndex index.php index.html
-
+
AddDefaultCharset utf-8
Options -Indexes
-
- ModPagespeed Off
-