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