From f651e555a421b0d41dbdeec6cd548c2b5ef125ea Mon Sep 17 00:00:00 2001
From: Jared Hancock <gravydish@gmail.com>
Date: Wed, 21 Mar 2012 09:16:35 -0500
Subject: [PATCH] Add mod_rewrite support for the API

The API is implemented for HTTP requests via the api/http.php module.  Where
supported (by Apache), support rewriting URIs from something like
http://domain.tld/api/tickets.xml to
http://domain.tld/api/http.php/tickets.xml, so the explicit usage of the
http.php script is not required.
---
 api/.htaccess | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 api/.htaccess

diff --git a/api/.htaccess b/api/.htaccess
new file mode 100644
index 000000000..e230ac6e1
--- /dev/null
+++ b/api/.htaccess
@@ -0,0 +1,9 @@
+Options +FollowSymLinks
+RewriteEngine On
+
+RewriteBase /api/
+
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+
+RewriteRule ^(.*)$ http.php/$1 [L]
-- 
GitLab