Blame view

.htaccess 4.77 KB
3f2bc3d0   Administrator   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  AddDefaultCharset utf-8
  <IfModule mod_rewrite.c>
  
  
      Options +FollowSymlinks
  
      RewriteEngine On
  
  </IfModule>
  
  <IfModule mod_rewrite.c>
  
      RewriteBase /
      #  with admin first
  
  
d0108705   Dmytry Fedorchuk   All seo
17
18
19
20
21
22
    Redirect 301 /Kak_vibrat_ryuksak        /
    Redirect 301 /products/ryukzaki          /catalog/ryukzaki
    Redirect 301 /products/koshel_ki        /catalog/koshelki
    Redirect 301 /products/nesessery​        /catalog/nesessery
    Redirect 301 /products/sumki             /catalog/sumki
    Redirect 301 /products/germochehly       /catalog/germocehly
e21450c9   Dmytry Fedorchuk   SEO
23
  
3f2bc3d0   Administrator   first commit
24
      RewriteRule ^storage/(.*)?$ /storage/$1 [L,PT]
8aa67b1b   Administrator   generator commit
25
      RewriteRule ^generator/(.*)?$ /generator/$1 [L,PT]
3f2bc3d0   Administrator   first commit
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
  
      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]
  
  
3f2bc3d0   Administrator   first commit
52
53
54
55
56
57
58
59
60
61
      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]
  
c34b3aa0   Karnovsky A   -
62
63
      RewriteRule ^libraries/(.*)$ frontend/web/libraries/$1 [L]
  
550eac02   Administrator   second
64
65
      RewriteRule ^img/(.*)$ frontend/web/img/$1 [L]
  
ccc7a9d3   Karnovsky A   Karnovsky 12052016
66
67
      RewriteRule ^files/(.*)$ frontend/web/files/$1 [L]
  
3f2bc3d0   Administrator   first commit
68
69
      RewriteRule ^fonts/(.*)$ frontend/web/fonts/$1 [L]
  
486e5dea   Dmytry Fedorchuk   SEO
70
      RewriteRule robots.txt$ frontend/web/robots.txt [L]
be02a25c   Dmytry Fedorchuk   htacess www
71
  
65b4f6ae   Administrator   29.06.16
72
      RewriteRule sitemap.xml$ frontend/web/sitemap.xml [L]
486e5dea   Dmytry Fedorchuk   SEO
73
74
  
      RewriteCond %{REQUEST_URI} !^/(frontend|backend)/web/(assets|css|txt|js|images|fonts|img|files)/
3f2bc3d0   Administrator   first commit
75
76
77
78
79
80
81
  
      RewriteCond %{REQUEST_URI} !index.php
  
      RewriteCond %{REQUEST_FILENAME} !-f [OR]
  
      RewriteCond %{REQUEST_FILENAME} !-d
  
be02a25c   Dmytry Fedorchuk   htacess www
82
  
e21450c9   Dmytry Fedorchuk   SEO
83
84
      RewriteCond %{HTTP_HOST} ^www\.(.*)
      RewriteRule ^(.*)$ frontend/web/index.php
be02a25c   Dmytry Fedorchuk   htacess www
85
86
  
  
e21450c9   Dmytry Fedorchuk   SEO
87
      RewriteCond %{HTTP_HOST} ^([^www].*)$
f57afab3   Dmytry Fedorchuk   SEO
88
      RewriteRule (.*) http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
be02a25c   Dmytry Fedorchuk   htacess www
89
  
e9088d10   Administrator   14.06.16
90
91
      RewriteCond %{THE_REQUEST} \s/+(.+?)/+[?\s]
      RewriteRule /$ /%1 [R,L]
be02a25c   Dmytry Fedorchuk   htacess www
92
93
94
  
  
  
be02a25c   Dmytry Fedorchuk   htacess www
95
96
  #      RewriteCond %{HTTP_HOST} ^([^www].*)$
  #      RewriteRule ^(.*)$  http://www.%1/$1 [R=301]
fdb2e993   Dmytry Fedorchuk   htacess www
97
  
3f2bc3d0   Administrator   first commit
98
99
100
101
102
103
  </IfModule>
  
  #для возможности загрузки файлов парсера
  <IfModule mod_php5.c>
       upload_max_filesize 20M
       post_max_size 30M
ccc9a8a3   Administrator   image size
104
105
106
107
  </IfModule>
  
  
  # кеширование в браузере на стороне пользователя
0d9973ca   Administrator   14.06.16
108
  
b7500465   Administrator   20.07.16
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
  <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>
  # -Control
  < mod_headers.c>
  #  дней
      < "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
      Header set Cache-Control "max-age=2592000, public"
      </>
      #  дней
      < "\.(css|js)$">
      Header set Cache-Control "max-age=2592000, public"
      </>
      #  дня
      < "\.(xml|txt)$">
      Header set Cache-Control "max-age=172800, public, must-revalidate"
      </>
      #  день
      < "\.(html|htm|php)$">
      Header set Cache-Control "max-age=172800, private, must-revalidate"
      </>
  </>
  
  #Запрет отдачи -заголовков Vary браузерам семейства MSIE
  <IfModule mod_setenvif.c>
  BrowserMatch "MSIE" force-no-vary
  BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary
77f8451c   Administrator   20.07.16
168
  </IfModule>