-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
47 lines (34 loc) · 1.28 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
# INDEX
AddDefaultCharset UTF-8
Options +FollowSymLinks
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^([^.]+)\.multy\.cms(:80)?$
RewriteCond %{DOCUMENT_ROOT}/%1/$1 -d
RewriteRule (.*) /%1/$1 [L]
#RewriteCond %{HTTP_HOST} ^www\.*\.multy.cms$ [OR]
#RewriteCond %{HTTP_HOST} ^*\.multy.cms$
#RewriteRule .* - [F,L]
#RewriteCond %{REQUEST_URI} !^/templates(/.*)?$ [NC]
#RewriteRule .* rewrite?%{REQUEST_URI} [L]
#RewriteCond %{REQUEST_URI} !\.(js|ico|gif|jpg|jpeg|png|css|ogg)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?C=$1
# Make all PHP code look like HTML
#AddType application/x-httpd-php .htm .html .php .asp
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl|jpg|png|gif)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript application/json
</IfModule>