-
Notifications
You must be signed in to change notification settings - Fork 0
/
htaccess.dist
68 lines (58 loc) · 2.34 KB
/
htaccess.dist
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
62
63
64
65
66
67
68
# There might be no access to apache config, set options here
DirectoryIndex index.php index.html
Options -Indexes +FollowSymLinks -MultiViews
AddType video/ogg .ogm
AddType video/ogg .ogv
AddType audio/ogg .ogg
AddType video/mp4 .mp4
AddType video/webm .webm
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-opentype .otf
AddType image/svg+xml .svg
AddType application/x-font-ttf .ttf
AddType application/font-woff .woff
# Options might not allowed here, use Rewrite rules instead
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} /+images/+cache/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]
RewriteRule ^bundles/(.*)$ public/bundles/$1
RewriteCond %{REQUEST_URI} !\.php$
RewriteCond %{REQUEST_URI} !\.html$
RewriteCond %{REQUEST_URI} !\.css$
RewriteCond %{REQUEST_URI} !\.woff$
RewriteCond %{REQUEST_URI} !\.ttf$
RewriteCond %{REQUEST_URI} !\.svg$
RewriteCond %{REQUEST_URI} !\.otf$
RewriteCond %{REQUEST_URI} !\.eot$
RewriteCond %{REQUEST_URI} !\.js$
RewriteCond %{REQUEST_URI} !\.ico$
RewriteCond %{REQUEST_URI} !/+admin/
RewriteCond %{REQUEST_URI} !/+install/
RewriteCond %{REQUEST_URI} !/+robots.txt$
RewriteCond %{REQUEST_URI} !/+crossdomain.xml$
RewriteCond %{REQUEST_URI} !/plugins/([^/]*)?/+js/
RewriteCond %{REQUEST_URI} !/plugins/([^/]*)?/+css/
RewriteCond %{REQUEST_URI} !/plugins/([^/]*)?/+images/
RewriteCond %{REQUEST_URI} !^/js/
RewriteCond %{REQUEST_URI} !/plugins/([^/]*)?/\.php$
RewriteCond %{REQUEST_URI} !/+themes/
RewriteCond %{REQUEST_URI} !/public/+videos/
RewriteCond %{REQUEST_URI} !/public/+pdf/
RewriteCond %{REQUEST_URI} !^/images/
RewriteCond %{REQUEST_URI} !/+images/+cache/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]
RewriteCond %{REQUEST_URI} .tpl$
RewriteRule . index.php [L]
RewriteCond %{REQUEST_URI} /+admin$|/+admin/+.*|/+admin-files/
RewriteRule . admin.php [L]
</IfModule>
# Uncomment it for gui backup/restore process
# NOTE: It can be incompatible on some shared hosting
#php_value output_buffering Off
# Uncomment for large file uploads with docker
# containers (to install private plugins) for example
#php_value upload_max_filesize 100M
#php_value post_max_size 100M