X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.htaccess;h=9d1522dfb14544aae9c8e5398c18c33ac8290472;hb=HEAD;hp=8876e346ce70bf3ff951a5ed3e2fe682de837535;hpb=0d930454a2892715e691f9c7713e26a3bb4ee96c;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