From bb03e2dd5ba1e18b576565abbe376157d9702f3e Mon Sep 17 00:00:00 2001 From: mr Date: Wed, 8 Jun 2016 17:07:01 +0300 Subject: [PATCH] htacess www --- .htaccess | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index 73d8974..84cbc63 100644 --- a/.htaccess +++ b/.htaccess @@ -71,7 +71,12 @@ AddDefaultCharset utf-8 RewriteCond %{REQUEST_FILENAME} !-d - RewriteRule ^.*$ frontend/web/index.php [L] + + RewriteRule ^.*$ frontend/web/index.php [C] + RewriteCond %{HTTP_HOST} ^([^www].*)$ + RewriteRule ^(.*)$ http://www.%1/$1 [L,R=301] + + -- libgit2 0.21.4