-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
executable file
·47 lines (40 loc) · 1.55 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
# Bettino CMS #
AddDefaultCharset UTF-8
# deny directory listing #
Options -Indexes
# rewrite engine #
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase {VAR_BASEDIR}
RewriteRule ^arch/private/(.*) / [L]
RewriteRule ^(arch/.*) $1 [L,QSA]
RewriteRule ^(template/.*) $1 [L,QSA]
RewriteRule ^(img/.*) $1 [L,QSA]
RewriteRule ^(admin/.*) $1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(..)/(.*)? index.php?lang=$1&url=$2 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) shortURL.php?url=$1 [L,QSA]
</IfModule>
# Gzip compression #
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
</ifmodule>
# expire headers #
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType application/javascript "access plus 216000 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>