-
Notifications
You must be signed in to change notification settings - Fork 69
/
.htaccess
32 lines (24 loc) · 1.06 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
<IfModule mod_rewrite.c>
# Turn on URL rewriting
RewriteEngine On
# Installation directory
#RewriteBase /kohana/
# If the request is for a modules assets directory allow it
RewriteRule ^modules/.*/assets/.*$ - [L]
# Protect application and system files from being viewed
#RewriteRule ^(bluebox|modules|system|upload)/ - [F,L]
# Catch requests for XML or JSON and send them through an alternate entry point
RewriteRule ^(.+)\.json$ json.php/$1 [T=application/json,L]
RewriteRule ^(.+)\.xml$ xml.php/$1 [T=text/xml,L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} installer\.html [OR]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT,L]
</IfModule>
# Limits the file size that a user can upload
php_value upload_max_filesize 25M
# Max execution time. Is here for the media module
# After X seconds, the file upload will stop
php_value max_execution_time 300