title: .htaccess rewrite in subdirectory not working under root directory with .htaccess
body: <p>My domain points to root folder. In this folder I need to have .htaccess which will redirect to subfolder.</p>
  
  <p>In the root folder I have this .htaccess:</p>
  
  <pre><code>RewriteEngine on
  RewriteBase /
  RewriteCond %{REQUEST_URI} !^/sub/folder/
  RewriteCond %{HTTP_HOST} ^(www\.)?domain\.
  RewriteRule ^(.*) /sub/folder/$1 [L]
  </code></pre>
  
  <p>In sub/folder/.htaccess I have this lines:</p>
  
  <pre><code>RewriteEngine on
  RewriteBase /
  
  ErrorDocument 404 /index.php?action=404
  
  RewriteCond %{REQUEST_URI} ^/image/([^/]+)/(\d+)x(\d+)/([^/]+).(jpg|png)$
  RewriteRule (.*) file.php?action=%1&amp;code=%4&amp;w=%2&amp;h=%3 [B,L,QSA]
  
  RewriteCond %{REQUEST_URI} ^/cscard_valid$
  RewriteRule (.*) index.php?action=cscardvalid&amp;ajax=true [L,QSA]
  ..
  </code></pre>
  
  <p>I don't known why redirects doesn't works. Can you help me please?
  Thanks</p>