forked from directus/directus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
57 lines (45 loc) · 1.69 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
53
54
55
56
57
# 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
# No Trailing-slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
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]
# Files Thumbnails
# - Cached thumbnail exists
#RewriteCond %{REQUEST_URI} ^/thumbnail/(.+)$
#RewriteCond %{DOCUMENT_ROOT}/images/cached/%1 -f
#RewriteRule ^ /images/cached/%1 [L]
# - Cached thumbnail doesn't exist
RewriteCond %{REQUEST_URI} thumbnail/(.+)$
#RewriteCond %{DOCUMENT_ROOT}/images/cached/%2 !-f
RewriteRule ^ thumbnail.php?filename=%1 [L]
# Directus Front Controller
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !index
RewriteRule (.*) index.php [L]
</ifModule>
# 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