From: Robert Kaiser Date: Sat, 29 Oct 2016 18:04:19 +0000 (+0200) Subject: make rewrites actually work correctly so that even for JSON we do not have to supple... X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=commitdiff_plain;h=88191064f51f758e3dcd11cc7cd9612770316895 make rewrites actually work correctly so that even for JSON we do not have to supple the .php ending --- diff --git a/.htaccess b/.htaccess index da4a7f8..839b7b0 100644 --- a/.htaccess +++ b/.htaccess @@ -1,5 +1,8 @@ - RewriteEngine On - # Send calls to the PHP equivalents. - RewriteCond %{query_string} ^(.+) [NC] - RewriteRule ^(authorize|token|api)$ /$1.php?%1 [L,NE,PT] - RewriteRule ^(authorize|token|api)$ /$1.php [L,NE,PT] +# Make sure the MultiViews from mod_negotiation do not interfere with the forwarding set below. +Options -MultiViews + +RewriteEngine On +# Send calls to the PHP equivalents. +RewriteCond %{query_string} ^(.+) [NC] +RewriteRule ^(authorize|token|api)$ $1.php?%1 [L,NE,PT] +RewriteRule ^(authorize|token|api)$ $1.php [L,NE,PT]