diff --git a/.htaccess b/.htaccess index cab088b..ca0467e 100644 --- a/.htaccess +++ b/.htaccess @@ -14,8 +14,7 @@ AddDefaultCharset utf-8 # deal with admin first - RewriteCond %{HTTP_HOST} ^([^www].*)$ - RewriteRule ^(.*)$ http://www.%1/$1 [R=301] + RewriteRule ^storage/(.*)?$ /storage/$1 [L,PT] @@ -71,7 +70,10 @@ AddDefaultCharset utf-8 RewriteCond %{REQUEST_FILENAME} !-d - RewriteRule ^.*$ frontend/web/index.php [L] + RewriteCond %{HTTP_HOST} ^([^www].*)$ + RewriteRule ^(.*)$ http://www.%1/$1 [L] + + RewriteRule ^.*$ frontend/web/index.php [L, R=301] -- libgit2 0.21.4