title: mod_rewrite for 2 same files in different folders
body: <p>I have files:</p>
  
  <pre><code>search_result.php
  new/search_result.php
  </code></pre>
  
  <p>mod_rewrite URL for these files are</p>
  
  <pre><code>www.domain.com/search?q=
  www.domain.com/new/search?q=
  </code></pre>
  
  <p>The first one is working fine. But when I open <code>www.domain.com/new/search?q=</code>, its picking the file <code>search_result.php</code> in the root folder, I want it to pick the file <code>new/search_result.php</code></p>
  
  <p>The mod_rewrite code I'm using for both the folders is:</p>
  
  <pre><code>RewriteRule ^search$ search_result.php [QSA,L]
  </code></pre>
  
  <p>Thanks in advance!</p>