forked from directus/v8-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
45 lines (35 loc) · 1.27 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
# 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
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
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>