forked from directus/directus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
49 lines (40 loc) · 1.48 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Hide directory listings
Options -Indexes
# No font warnings please
AddType font/ttf .ttf
AddType font/eot .eot
AddType font/otf .otf
AddType font/woff .woff
<ifModule mod_rewrite.c>
RewriteEngine On
# Uncomment this if you are getting routing errors:
# RewriteBase /
RewriteRule ^assets - [L,NC]
RewriteRule ^extensions/([^/]+) - [L,NC]
RewriteRule ^extensions/([^/]+)/assets - [L,NC]
RewriteRule ^extensions/([^/]+)/main.js - [L,NC]
RewriteRule ^listviews/([^/]+) - [L,NC]
RewriteRule ^listviews/([^/]+)/assets - [L,NC]
RewriteRule ^listviews/([^/]+)/ListView.js - [L,NC]
# Files Proxy
# - Only define one of the URL segments /.../ here so that the request format
# can be more flexibly maintained in the PHP/Slim router
# @NOTE: media_auth_proxy was removed
# @TODO: Implement files proxy using the new files object
# RewriteCond %{REQUEST_URI} media_auth_proxy/([^/]+)/(.+)$
# RewriteRule ^ /media_auth_proxy/index.php [L]
# Directus Front Controller
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !index
RewriteRule (.*) index.php [L]
</ifModule>
<ifModule mod_php5.c>
# Fix $HTTP_RAW_POST_DATA deprecated warning
php_value always_populate_raw_post_data -1
</ifModule>
# Prevent PageSpeed module from rewriting the templates files
# Avoiding it from breaking the template
<IfModule pagespeed_module>
ModPagespeedDisallow "*/app/**/*.html"
</IfModule>