X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.htaccess;h=9d1522dfb14544aae9c8e5398c18c33ac8290472;hb=151fa1e450740b08ee783e819dd42cf2c48c335c;hp=8876e346ce70bf3ff951a5ed3e2fe682de837535;hpb=e809908f9e593b2cec11f72849caa1dae6394451;p=github%2Fshaarli%2FShaarli.git
diff --git a/.htaccess b/.htaccess
index 8876e346..9d1522df 100644
--- a/.htaccess
+++ b/.htaccess
@@ -10,29 +10,17 @@ RewriteRule ^(.git|doxygen|vendor) - [F]
# fixes JWT token not correctly forwarded on some Apache/FastCGI setups
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
+# Alternative (if the 2 lines above don't work)
+# SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
-# REST API
+# Slim URL Redirection
+# Ionos Hosting needs RewriteBase /
+# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
-
-
- = 2.4>
- Require all granted
-
-
- Allow from all
- Deny from none
-
-
-
-
- Require all granted
-
-
-
-
+
= 2.4>
Require all denied