Commit aae3b8ebdbaea5f4cb61d1db01119290c7f678b5
1 parent
7d20bafe
htacess www
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
.htaccess
@@ -14,6 +14,8 @@ AddDefaultCharset utf-8 | @@ -14,6 +14,8 @@ AddDefaultCharset utf-8 | ||
14 | # deal with admin first | 14 | # deal with admin first |
15 | 15 | ||
16 | 16 | ||
17 | + RewriteCond %{HTTP_HOST} ^([^www].*)$ | ||
18 | + RewriteRule ^(.*)$ http://www.%1/$1 [L,R=301] | ||
17 | 19 | ||
18 | RewriteRule ^storage/(.*)?$ /storage/$1 [L,PT] | 20 | RewriteRule ^storage/(.*)?$ /storage/$1 [L,PT] |
19 | 21 | ||
@@ -71,8 +73,6 @@ AddDefaultCharset utf-8 | @@ -71,8 +73,6 @@ AddDefaultCharset utf-8 | ||
71 | 73 | ||
72 | RewriteRule ^.*$ frontend/web/index.php [L] | 74 | RewriteRule ^.*$ frontend/web/index.php [L] |
73 | 75 | ||
74 | - RewriteCond %{HTTP_HOST} ^([^www].*)$ | ||
75 | - RewriteRule ^(.*)$ http://www.%1/$1 [L,R=301] | ||
76 | </IfModule> | 76 | </IfModule> |
77 | 77 | ||
78 | #для возможности загрузки файлов парсера | 78 | #для возможности загрузки файлов парсера |