# No font warnings please
AddType font/ttf .ttf
AddType font/eot .eot
AddType font/otf .otf
AddType font/woff .woff
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]
# 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