.htaccess
11.7 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
AddDefaultCharset utf-8
<IfModule mod_rewrite.c>
RewriteEngine On
</IfModule>
<IfModule mod_rewrite.c>
RewriteBase /
# deal with admin first
#liniya svitla only
RewriteRule (.*)lyustry-2.htm /catalog/lyustry-i-potolochnoe-osveshchenie/filters:podrazdel-lustri=lyustra [R=301,L]
RewriteRule (.*)sovremennye-3448.htm /catalog/lyustry-i-potolochnoe-osveshchenie/filters:style-lustri=sovremennyy-6 [R=301,L]
RewriteRule (.*)klassicheskie-3407.htm /catalog/lyustry-i-potolochnoe-osveshchenie/filters:style-lustri=klassicheskiy-4 [R=301,L]
RewriteRule (.*)podvesnye-3439.htm /catalog/lyustry-i-potolochnoe-osveshchenie/filters:podrazdel-lustri=podves [R=301,L]
RewriteRule (.*)dlya-vannyh-3496.htm /catalog/lyustry-i-potolochnoe-osveshchenie/filters:podrazdel-lustri=lyustry-dlya-vy [R=301,L]
RewriteRule (.*)detskie-3495.htm /catalog/lyustry-i-potolochnoe-osveshchenie/filters:podrazdel-lustri=det-3 [R=301,L]
RewriteRule (.*)dlya-vannyh-14.htm /catalog/svetilniki-dlya-vannyh-komnat [R=301,L]
RewriteRule (.*)bra-3438.htm /catalog/svetilniki-dlya-vannyh-komnat/filters:podrazdel-vanna=bra-i-nastennye-svetilniki-2 [R=301,L]
RewriteRule (.*)lyustry-3459.htm /catalog/svetilniki-dlya-vannyh-komnat/filters:podrazdel-vanna=lyustry-i-potolochnye-svetilniki-2 [R=301,L]
RewriteRule (.*)ulichnye-22.htm /catalog/ulichnoe-osveshchenie [R=301,L]
RewriteRule (.*)podvesnye-3416.htm /catalog/ulichnoe-osveshchenie/filters:podrazdel-ulichnoe=podvesnye [R=301,L]
RewriteRule (.*)perenosnye-3406.htm /catalog/ulichnoe-osveshchenie/filters:podrazdel-ulichnoe=perenosnye [R=301,L]
RewriteRule (.*)nastenno-potolochnye-3418.htm /catalog/ulichnoe-osveshchenie/filters:podrazdel-ulichnoe=nastenno-potolochnye [R=301,L]
RewriteRule (.*)vstraivaemye-v-grunt-3420.htm /catalog/ulichnoe-osveshchenie/filters:podrazdel-ulichnoe=vstraivaemye-v-grunt [R=301,L]
RewriteRule (.*)vreznye-3419.htm /catalog/ulichnoe-osveshchenie/filters:podrazdel-ulichnoe=vreznye-2 [R=301,L]
RewriteRule (.*)stolbiki-bolshie-3415.htm /catalog/ulichnoe-osveshchenie/filters:podrazdel-ulichnoe=stolby [R=301,L]
RewriteRule (.*)abajur-3453.htm /catalog/abazhury-i-plafony [R=301,L]
RewriteRule (.*)lampochki-29.htm /catalog/lampochki [R=301,L]
RewriteRule (.*)lampochki-29/fbrandlist-4 /catalog/lampochki/filters:brands=philips [R=301,L]
RewriteRule (.*)lampochki-29/fbrandlist-5 /catalog/lampochki/filters:brands=pila [R=301,L]
RewriteRule (.*)lampochki-29/fbrandlist-13 /catalog/lampochki/filters:brands=light-topps [R=301,L]
RewriteRule (.*)lampochki-29/fcatlist-40.htm /catalog/lampochki/filters:podrazdel-lampo4ki=galogenovye [R=301,L]
RewriteRule (.*)lampochki-29/fcatlist-36.htm /catalog/lampochki/filters:podrazdel-lampo4ki=lyuminiscentnye [R=301,L]
RewriteRule (.*)lampochki-29/fcatlist-30.htm /catalog/lampochki/filters:podrazdel-lampo4ki=nakalivaniya [R=301,L]
RewriteRule (.*)lampochki-29/fcatlist-43.htm /catalog/lampochki/filters:podrazdel-lampo4ki=svetodiodnye-led [R=301,L]
RewriteRule (.*)bra-5.htm /catalog/bra-i-nastennoe-osveshchenie/filters:podrazdel-bra=bra [R=301,L]
RewriteRule (.*)bra-5/fbrandlist-7 /catalog/bra-i-nastennoe-osveshchenie/filters:brands=elstead [R=301,L]
RewriteRule (.*)bra-5/fbrandlist-2 /catalog/bra-i-nastennoe-osveshchenie/filters:brands=eseo [R=301,L]
RewriteRule (.*)bra-5/fbrandlist-3 /catalog/bra-i-nastennoe-osveshchenie/filters:brands=lirio [R=301,L]
RewriteRule (.*)bra-5/fbrandlist-1 /catalog/bra-i-nastennoe-osveshchenie/filters:brands=massive [R=301,L]
RewriteRule (.*)bra-5/fbrandlist-4 /catalog/bra-i-nastennoe-osveshchenie/filters:brands=philips [R=301,L]
RewriteRule (.*)dlya-vannyh-3501.htm /catalog/bra-i-nastennoe-osveshchenie/filters:podrazdel-bra=dlya-vynny [R=301,L]
RewriteRule (.*)podsvetki-3503.htm /catalog/bra-i-nastennoe-osveshchenie/filters:podrazdel-bra=podsvetki-kartin [R=301,L]
RewriteRule (.*)detskie-3500.htm /catalog/bra-i-nastennoe-osveshchenie/filters:podrazdel-bra=det-2 [R=301,L]
RewriteRule (.*)bra-5/fcatlist-3318.htm /catalog/bra-i-nastennoe-osveshchenie/filters:style-bra=klassicheskiy-3 [R=301,L]
RewriteRule (.*)klassicheskie-3413.htm /catalog/bra-i-nastennoe-osveshchenie/filters:podrazdel-bra=nastenye-svetilniki [R=301,L]
RewriteRule (.*)lyustry-2/fbrandlist-1 /catalog/lyustry-i-potolochnoe-osveshchenie/filters:brands=massive [R=301,L]
RewriteRule (.*)lyustry-2/fbrandlist-4 /catalog/lyustry-i-potolochnoe-osveshchenie/filters:brands=philips [R=301,L]
RewriteRule (.*)lyustry-2/fbrandlist-7 /catalog/lyustry-i-potolochnoe-osveshchenie/filters:brands=elstead [R=301,L]
RewriteRule (.*)nastolnye-7.htm /catalog/nastolnye-lampy [R=301,L]
RewriteRule (.*)nastolnye-7/fbrandlist-4 /catalog/nastolnye-lampy/filters:brands=philips [R=301,L]
RewriteRule (.*)ofisnye-3402.htm /catalog/nastolnye-lampy/filters:podrazdel-nastolnie=ofisnye [R=301,L]
RewriteRule (.*)detskie-3504.htm /catalog/nastolnye-lampy/filters:podrazdel-nastolnie=det [R=301,L]
RewriteRule (.*)torshery-6.htm /catalog/torshery [R=301,L]
RewriteRule (.*)torshery-klassicheskie-3444.htm /catalog/torshery/filters:style-torsher=klassicheskiy-7 [R=301,L]
RewriteRule (.*)torshery-sovremennye-3440.htm /catalog/torshery/filters:style-torsher=sovremennyy-10 [R=301,L]
RewriteRule (.*)massive.htm /brands/massive [R=301,L]
RewriteRule (.*)detskie-15.htm /catalog/detskie-svetilniki/filters:brands=massive [R=301,L]
RewriteRule (.*)ulichnye-22/fbrandlist-1 /catalog/ulichnoe-osveshchenie/filters:brands=massive [R=301,L]
RewriteRule (.*)philips.htm /brands/philips [R=301,L]
RewriteRule (.*)spoty-9.htm /catalog/tochechnoe/filters:podrazdel-tochki=spoty [R=301,L]
RewriteRule (.*)tochechnye-8.htm /catalog/tochechnoe [R=301,L]
RewriteRule (.*)tochechnye-8/fbrandlist-4 /catalog/tochechnoe/filters:brands=philips [R=301,L]
RewriteRule (.*)vreznye-3400.htm /catalog/tochechnoe/filters:podrazdel-tochki=vreznye [R=301,L]
RewriteRule (.*)tochechnye-8/fcatlist-3351.htm /catalog/tochechnoe/filters:podrazdel-tochki=tochechnoe-osveshchenie-2 [R=301,L]
RewriteRule (.*)nakladnye-3431.htm /catalog/tochechnoe/filters:podrazdel-tochki=nakladnye [R=301,L]
RewriteRule (.*)podsvetki-3434.htm /catalog/svetilniki-gadzhety [R=301,L]
RewriteRule (.*)dlya-vannyh-14/fcatlist-3365.htm /catalog/aksessuary/filters:podrazdel-aksesyari=zerkala [R=301,L]
RewriteRule (.*)galogennye-3516.htm /catalog/lampochki/filters:podrazdel-lampo4ki=galogenovye [R=301,L]
RewriteRule (.*).htm / [R=301,L]
#RewriteRule (.*)shops.htm / [R=301,L]
#RewriteRule (.*)dlya-kuhon-16.htm / [R=301,L]
RewriteRule (.*)actions/(.*) / [R=301,L]
RewriteRule (.*)fbrandlist-(.*) / [R=301,L]
RewriteRule (.*)fcatlist-(.*) / [R=301,L]
RewriteRule ^storage/(.*)?$ /storage/$1 [L,PT]
RewriteRule ^generator/(.*)?$ /generator/$1 [L,PT]
RewriteCond %{REQUEST_URI} ^/(admin)
RewriteRule ^admin/assets/(.*)$ backend/web/assets/$1 [L]
RewriteRule ^admin/css/(.*)$ backend/web/css/$1 [L]
RewriteRule ^admin/js/(.*)$ backend/web/js/$1 [L]
RewriteRule ^admin/images/(.*)$ backend/web/images/$1 [L]
RewriteRule ^admin/fonts/(.*)$ backend/web/fonts/$1 [L]
RewriteCond %{REQUEST_URI} !^/backend/web/(assets|css|js|images|fonts)/
RewriteCond %{REQUEST_URI} ^/(admin)
RewriteRule ^.*$ backend/web/index.php [L]
RewriteCond %{REQUEST_URI} ^/(assets|css)
RewriteRule ^assets/(.*)$ frontend/web/assets/$1 [L]
RewriteRule ^css/(.*)$ frontend/web/css/$1 [L]
RewriteRule ^js/(.*)$ frontend/web/js/$1 [L]
RewriteRule ^images/(.*)$ frontend/web/images/$1 [L]
RewriteRule ^libraries/(.*)$ frontend/web/libraries/$1 [L]
RewriteRule ^img/(.*)$ frontend/web/img/$1 [L]
RewriteRule ^files/(.*)$ frontend/web/files/$1 [L]
RewriteRule ^fonts/(.*)$ frontend/web/fonts/$1 [L]
RewriteRule robots.txt$ frontend/web/robots.txt [L]
RewriteRule sitemap.xml$ frontend/web/sitemap.xml [L]
RewriteRule feed.csv$ frontend/web/feed.csv [L]
RewriteCond %{REQUEST_URI} !^/(frontend|backend)/web/(assets|css|txt|js|images|fonts|img|files)/
RewriteCond %{REQUEST_URI} !index.php
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTP_HOST} ^www\.(.*)
RewriteRule ^(.*)$ frontend/web/index.php
RewriteCond %{HTTP_HOST} ^([^www].*)$
RewriteRule (.*) http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{THE_REQUEST} \s/+(.+?)/+[?\s]
RewriteRule /$ /%1 [R=301,L]
RewriteCond %{HTTP_HOST} ^([^www].*)$
RewriteRule ^(.*)$ http://www.%1/$1 [R=301]
</IfModule>
#для возможности загрузки файлов парсера
<IfModule mod_php5.c>
upload_max_filesize 20M
post_max_size 30M
</IfModule>
# кеширование в браузере на стороне пользователя
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access 7 days"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/html "access plus 7 day"
ExpiresByType text/x-javascript "access 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType application/x-shockwave-flash "access 1 year"
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
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
RewriteEngine On
AddEncoding gzip .gz
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [QSA,L]
</IfModule>
# Cache-Control
< mod_headers.c>
# 30 дней
< "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=2592000, public"
</>
# 30 дней
< "\.(css|js)$">
Header set Cache-Control "max-age=2592000, public"
</>
# 2 дня
< "\.(xml|txt)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
</>
# 1 день
< "\.(html|htm|php)$">
Header set Cache-Control "max-age=172800, private, must-revalidate"
</>
</>
#Запрет отдачи HTTP-заголовков Vary браузерам семейства MSIE
<IfModule mod_setenvif.c>
BrowserMatch "MSIE" force-no-vary
BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary
</IfModule>