forked from directus/directus
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.htaccess
52 lines (41 loc) · 1.5 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
50
51
52
# 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>
# default is 64, so 64 + 72 (post_max_size value)
php_value memory_limit 136M
# default is 8, so 8 + 64 (upload_max_filesize value)
php_value post_max_size 72M
# default is 2
php_value upload_max_filesize 64M
# E_ALL | E_STRICT
php_value error_reporting 32767
</ifModule>