title: Two htaccess files
body: <p>I have a question about using multiple <code>.htaccess</code> files - I couldn't find the answer to this after looking elsewhere on stackoverflow, so I hope you guys can help. </p>
  
  <p>I currently have one <code>.htaccess</code> file in the root of my site, which performs a simple url rewrite:</p>
  
  <pre><code>Options -MultiViews
  # CheckSpelling off
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.+)$ index.php?url=$1 [L]
  ErrorDocument 404 /index.php
  </code></pre>
  
  <p>I'm currently working on the second phase of development of this site, and I've made a replica in a subfolder (e.g. www.abcdef.com/new/). The trouble is, at the moment if I click a link on this replica site, it redirects me to the root, original page, whereas I want it to go to the equivalent page in the new/ folder. I've put another <code>.htaccess</code> file in this new/ folder, which however doesn't have any noticeable effect:</p>
  
  <pre><code>Options -MultiViews
  # CheckSpelling off
  RewriteEngine On
  RewriteBase /new/
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.+)$ /new/index.php?url=$1 [L]
  ErrorDocument 404 /index.php
  </code></pre>
  
  <p>So my question is: is it permissible to have another <code>.htaccess</code> file in a subfolder like this? And if so, why aren't the above lines working?</p>
  
  <p>Thanks in advance for any ideas on this!</p>