title: .htaccess 403 Forbidden if url contains directory with another htaccess file
body: <p>I have a <code>.htaccess</code> file in website root with the following rules :</p>
  
  <pre><code>Options -MultiViews
  Options All -Indexes
  
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?url=$1 [QSA]
  </code></pre>
  
  <p>And another <code>.htaccess</code> file in a sub-directory (let's call it <code>Foo</code>) :</p>
  
  <pre><code>Order Allow,Deny
  Deny from all
  
  &lt;files ~ "\.(js|jpe?g|png|gif|bmp|css)"&gt;
      Allow from all
  &lt;/files&gt;
  </code></pre>
  
  <p>When I access for example : <code>/test/test/test</code> it normally redirects me to <code>index.php</code>, but when I my URI starts with existing directory it throws 403 error, ex : <code>/Foo/test/test/test</code> => 403 Error</p>
  
  <p>So my question is : <strong>How to make it to redirect to <code>index.php</code> even if it matches an existing sub-directory?</strong></p>
  
  <p><em>Note : Sub-Directoy must contain a .htaccess file to disallow direct access to files in it.</em></p>
  
  <p>Another Question : <strong>How to make all requests (even existing files and directories) except (images, css, js) to go to <code>index.php?url=$1</code>?</strong> When i remove <code>RewriteCond %{REQUEST_FILENAME} !-f</code> it redirects to <code>index.php?url=index.php&amp;url=$1</code> or gives <code>Internal Error</code></p>