-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
88 lines (78 loc) · 4.2 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
RewriteEngine On
RewriteBase /
# RewriteCond %{HTTP_HOST} ^numerology.kz
# RewriteRule (.*) http://www.numerology.kz/$1 [R=301,L]
RewriteRule ^admin/?$ admin/ [L]
RewriteRule ^robots.txt/?$ robots.txt [L]
## RU это 1 KZ это 3 EN это 2 ##
RewriteRule ^ru/([A-Za-z0-9-_\']+)/?$ page.php?name=$1&lang=1 [L]
RewriteRule ^ru/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+)/?$ page.php?name=$1&lang=1&item_id=$2 [L]
RewriteRule ^ru/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+)/?$ page.php?name=$1&lang=1&user_id=$2&user_type_id=$3 [L]
RewriteRule ^ru/([A-Za-z0-9-_\']+)/page/([A-Za-z0-9-_\']+)/show/?$ page.php?name=$1&lang=1&page=$2 [L]
RewriteRule ^ru/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+).html/?$ page.php?name=$1&lang=1&news_id=$2 [L]
RewriteRule ^ru/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+)/?$ page.php?name=$1&lang=1&item_id=$2&item_id2=$3 [L]
RewriteRule ^kz/([A-Za-z0-9-_\']+)/?$ page.php?name=$1&lang=3 [L]
RewriteRule ^kz/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+)/?$ page.php?name=$1&lang=3&item_id=$2 [L]
RewriteRule ^kz/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+)/?$ page.php?name=$1&lang=3&user_id=$2&user_type_id=$3 [L]
RewriteRule ^kz/([A-Za-z0-9-_\']+)/page/([A-Za-z0-9-_\']+)/show/?$ page.php?name=$1&lang=3&page=$2 [L]
RewriteRule ^kz/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+).html/?$ page.php?name=$1&lang=3&news_id=$2 [L]
RewriteRule ^kz/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+)/?$ page.php?name=$1&lang=3&item_id=$2&item_id2=$3 [L]
RewriteRule ^en/([A-Za-z0-9-_\']+)/?$ page.php?name=$1&lang=2 [L]
RewriteRule ^en/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+)/?$ page.php?name=$1&lang=2&item_id=$2 [L]
RewriteRule ^en/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+)/?$ page.php?name=$1&lang=2&user_id=$2&user_type_id=$3 [L]
RewriteRule ^en/([A-Za-z0-9-_\']+)/page/([A-Za-z0-9-_\']+)/show/?$ page.php?name=$1&lang=2&page=$2 [L]
RewriteRule ^en/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+).html/?$ page.php?name=$1&lang=2&news_id=$2 [L]
RewriteRule ^en/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+)/([A-Za-z0-9-_\']+)/?$ page.php?name=$1&lang=2&item_id=$2&item_id2=$3 [L]
<ifModule mod_php.c>
php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value default_charset utf-8
php_value max_execution_time 300
php_value memory_limit 2048M
</ifModule>
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/svg "access 1 year"
ExpiresByType text/css "access 1 year"
ExpiresByType text/html "access 1 year"
ExpiresByType application/pdf "access 1 year"
ExpiresByType text/x-javascript "access 1 year"
ExpiresByType application/x-shockwave-flash "access 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 year"
</IfModule>
## EXPIRES CACHING ##