Commit bb03e2dd5ba1e18b576565abbe376157d9702f3e

Authored by Dmytry Fedorchuk
1 parent bb2fba22

htacess www

Showing 1 changed file with 6 additions and 1 deletions   Show diff stats
.htaccess
... ... @@ -71,7 +71,12 @@ AddDefaultCharset utf-8
71 71 RewriteCond %{REQUEST_FILENAME} !-d
72 72  
73 73  
74   - RewriteRule ^.*$ frontend/web/index.php [L]
  74 +
  75 + RewriteRule ^.*$ frontend/web/index.php [C]
  76 + RewriteCond %{HTTP_HOST} ^([^www].*)$
  77 + RewriteRule ^(.*)$ http://www.%1/$1 [L,R=301]
  78 +
  79 +
75 80  
76 81 </IfModule>
77 82  
... ...