Ситуация такая:
У меня сайт на yii2. Есть подпапка frontend/web на которую нужно настроить редирект из корня сайта.
.htaccess в корне сайта:
<IfModule mod_rewrite.c>
Options +FollowSymlinks
# Enable mod_rewrite
RewriteEngine On
RewriteBase /
# Frontend redirect
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteRule ^(.*)$ frontend/web/$1
</IfModule>
Вот кусок из лога:
212.224.112.72 - - [17/Nov/2014:13:44:26 +0300] [9015.devs.fragme.org/sid#7f065b92f688][rid#7f065bc81d28/initial] (3) [perdir /home/fragme/devs/9015/www/fragme/] strip per-dir prefix: /home/fragme/devs/9015/www/fragme/ ->
212.224.112.72 - - [17/Nov/2014:13:44:26 +0300] [9015.devs.fragme.org/sid#7f065b92f688][rid#7f065bc81d28/initial] (3) [perdir /home/fragme/devs/9015/www/fragme/] applying pattern '^(.*)$' to uri ''
212.224.112.72 - - [17/Nov/2014:13:44:26 +0300] [9015.devs.fragme.org/sid#7f065b92f688][rid#7f065bc81d28/initial] (2) [perdir /home/fragme/devs/9015/www/fragme/] rewrite '' -> 'frontweb/web/'
212.224.112.72 - - [17/Nov/2014:13:44:26 +0300] [9015.devs.fragme.org/sid#7f065b92f688][rid#7f065bc81d28/initial] (3) [perdir /home/fragme/devs/9015/www/fragme/] add per-dir prefix: frontweb/web/ -> /home/fragme/devs/9015/www/fragme/frontweb/web/
212.224.112.72 - - [17/Nov/2014:13:44:26 +0300] [9015.devs.fragme.org/sid#7f065b92f688][rid#7f065bc81d28/initial] (2) [perdir /home/fragme/devs/9015/www/fragme/] trying to replace prefix /home/fragme/devs/9015/www/fragme/ with /
212.224.112.72 - - [17/Nov/2014:13:44:26 +0300] [9015.devs.fragme.org/sid#7f065b92f688][rid#7f065bc81d28/initial] (1) [perdir /home/fragme/devs/9015/www/fragme/] internal redirect with /frontweb/web/ [INTERNAL REDIRECT]
212.224.112.72 - - [17/Nov/2014:13:44:26 +0300] [9015.devs.fragme.org/sid#7f065b92f688][rid#7f065bc86290/initial/redir#1] (3) [perdir /home/fragme/devs/9015/www/fragme/] add path info postfix: /home/fragme/devs/9015/www/fragme/frontweb -> /home/fragme/devs/9015/www/fragme/frontweb/web/
212.224.112.72 - - [17/Nov/2014:13:44:26 +0300] [9015.devs.fragme.org/sid#7f065b92f688][rid#7f065bc86290/initial/redir#1] (3) [perdir /home/fragme/devs/9015/www/fragme/] strip per-dir prefix: /home/fragme/devs/9015/www/fragme/frontweb/web/ -> frontweb/web/
212.224.112.72 - - [17/Nov/2014:13:44:26 +0300] [9015.devs.fragme.org/sid#7f065b92f688][rid#7f065bc86290/initial/redir#1] (3) [perdir /home/fragme/devs/9015/www/fragme/] applying pattern '^(.*)$' to uri 'frontweb/web/'
212.224.112.72 - - [17/Nov/2014:13:44:26 +0300] [9015.devs.fragme.org/sid#7f065b92f688][rid#7f065bc86290/initial/redir#1] (2) [perdir /home/fragme/devs/9015/www/fragme/] rewrite 'frontweb/web/' -> 'frontweb/web/frontweb/web/'
212.224.112.72 - - [17/Nov/2014:13:44:26 +0300] [9015.devs.fragme.org/sid#7f065b92f688][rid#7f065bc86290/initial/redir#1] (3) [perdir /home/fragme/devs/9015/www/fragme/] add per-dir prefix: frontweb/web/frontweb/web/ -> /home/fragme/devs/9015/www/fragme/frontweb/web/frontweb/web/
212.224.112.72 - - [17/Nov/2014:13:44:26 +0300] [9015.devs.fragme.org/sid#7f065b92f688][rid#7f065bc86290/initial/redir#1] (2) [perdir /home/fragme/devs/9015/www/fragme/] trying to replace prefix /home/fragme/devs/9015/www/fragme/ with /
212.224.112.72 - - [17/Nov/2014:13:44:26 +0300] [9015.devs.fragme.org/sid#7f065b92f688][rid#7f065bc86290/initial/redir#1] (1) [perdir /home/fragme/devs/9015/www/fragme/] internal redirect with /frontweb/web/frontweb/web/ [INTERNAL REDIRECT]
И так далее. Заранее спасибо!