diff --git a/.htaccess b/.htaccess index b4853ab..300edf9 100644 --- a/.htaccess +++ b/.htaccess @@ -14,6 +14,8 @@ AddDefaultCharset utf-8 # deal with admin first + RewriteCond %{HTTP_HOST} ^([^www].*)$ + RewriteRule ^(.*)$ http://www.%1/$1 [L,R=301] RewriteRule ^storage/(.*)?$ /storage/$1 [L,PT] @@ -71,8 +73,6 @@ AddDefaultCharset utf-8 RewriteRule ^.*$ frontend/web/index.php [L] - RewriteCond %{HTTP_HOST} ^([^www].*)$ - RewriteRule ^(.*)$ http://www.%1/$1 [L,R=301] #для возможности загрузки файлов парсера -- libgit2 0.21.4