From 88191064f51f758e3dcd11cc7cd9612770316895 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Sat, 29 Oct 2016 20:04:19 +0200 Subject: [PATCH] make rewrites actually work correctly so that even for JSON we do not have to supple the .php ending --- .htaccess | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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] -- 2.43.0