-
Notifications
You must be signed in to change notification settings - Fork 3
/
.htaccess
33 lines (25 loc) · 2.11 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
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase /
# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>
# Upload bigger files
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_input_time 420
php_value max_execution_time 420
php_value memory_limit 20M
LimitRequestBody 20000000
php_flag display_errors off
php_flag display_startup_errors off
php_value error_reporting -1
# If file exists in the files dir show it
RewriteRule ^f/(.*)$ files/$1 [QSA,L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule ^(.*)$ index.php [QSA,L]