title: Why Yii2 doesn't work from subdirectory?
body: <p>I have a small site on yii2, but it doesn't work from subdirectory. (site.com/<strong>yii</strong>). I think that problem in <code>.htaccess</code>, but I can't repair it. 
  My <code>.htaccess</code> in root is standart for yii2: </p>
  
  <pre><code>Options +FollowSymLinks
  IndexIgnore */*
  RewriteEngine on
  
  RewriteCond %{REQUEST_URI} !^/(web)
  RewriteRule ^assets/(.*)$ /web/assets/$1 [L]
  RewriteRule ^css/(.*)$ web/css/$1 [L]
  RewriteRule ^js/(.*)$ web/js/$1 [L]
  RewriteRule ^images/(.*)$ web/images/$1 [L]
  RewriteRule (.*) /web/$1
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /web/index.php
  </code></pre>
  
  <p>And <code>.htaccess</code> in web directory: </p>
  
  <pre><code>Options +FollowSymLinks
  IndexIgnore */*
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  
  RewriteRule . index.php
  </code></pre>
  
  <p>I tried set <code>RewriteBase</code> to subdir, but no result.</p>