make rewrites actually work correctly so that even for JSON we do not have to supple...
authorRobert Kaiser <kairo@kairo.at>
Sat, 29 Oct 2016 18:04:19 +0000 (20:04 +0200)
committerRobert Kaiser <kairo@kairo.at>
Sat, 29 Oct 2016 18:04:19 +0000 (20:04 +0200)
.htaccess

index da4a7f8646c1a4e2d82adb2ef7a45c35cb00abb7..839b7b0c153444ff0cd4267232a98f3e8bbc5fcc 100644 (file)
--- 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]