forked from CampFireManager/cfm2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_htaccess
More file actions
19 lines (14 loc) · 691 Bytes
/
_htaccess
File metadata and controls
19 lines (14 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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} !-d
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>