Browse files

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.
  • Loading branch information...
1 parent eddbddc commit f651e555a421b0d41dbdeec6cd548c2b5ef125ea @greezybacon greezybacon committed Mar 21, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 api/.htaccess
9 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]

0 comments on commit f651e55

Please sign in to comment.