forked from youngj/Envaya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
executable file
·61 lines (50 loc) · 1.79 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
58
59
60
61
# Elgg htaccess directives
# Copyright Curverider Ltd 2008-2009
# License http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
# Link http://elgg.org/
<IfModule !mod_rewrite.c>
ErrorDocument 500 "Apache does not have mod_rewrite loaded. Please check your Apache setup."
RedirectMatch 302 .* index.php
</IfModule>
<Files "htaccess_dist">
order allow,deny
deny from all
</Files>
Options -Indexes
Options +FollowSymLinks
DirectoryIndex index.php
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif "access plus 2 years"
ExpiresByType image/jpeg "access plus 2 years"
ExpiresByType image/png "access plus 2 years"
ExpiresByType image/x-icon "access plus 2 years"
</IfModule>
<IfModule mod_php5.c>
php_value memory_limit 64M
php_value register_globals 0
php_value post_max_size 10M
php_value upload_max_filesize 10M
php_value display_errors 7
php_value zlib.output_compression 0
</IfModule>
## Important note: mod_headers is required for correct functioning across proxies.
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.[0678] no-gzip
BrowserMatch \bMSIE !no-gzip
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
</IfModule>
<FilesMatch "\.(jpg|jpeg|gif|png|mp3|flv|mov|avi|3pg|html|htm|swf)$">
FileETag MTime Size
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^(\w+\.php|_media|_graphics|_css|(mod\/(\w+)\/(_graphics|_media)\/)) - [L]
RewriteRule .* index.php/$0 [L]
</IfModule>
#LimitRequestBody 10000