Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 653 Bytes
# This is taken from a comment at http://www.gen-x-design.com/archives/create-a-rest-api-with-php/
# The comment was by mitja at 2009-07-23 05:56a
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L]
# These two lines were added as per http://stackoverflow.com/a/8554171/5738
RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}]
RewriteRule .* - [E=HTTP_IF_NONE_MATCH:%{HTTP:If-None-Match}]
RewriteRule .* - [E=HTTP_ACCEPT_LANGUAGE:%{HTTP:Accept-Language}]
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
</IfModule>
Something went wrong with that request. Please try again.