move actual application into a subdirectory so we can deliver other things in the...
[authserver.git] / app / .htaccess
diff --git a/app/.htaccess b/app/.htaccess
new file mode 100644 (file)
index 0000000..839b7b0
--- /dev/null
@@ -0,0 +1,8 @@
+# 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]