X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=blobdiff_plain;f=.htaccess;h=4c00427195ecb0998589fc09dd02fa8580d97a3e;hp=8876e346ce70bf3ff951a5ed3e2fe682de837535;hb=HEAD;hpb=91a21c272960889afd4eaa431a3d29b7785b6efc 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