URL Rewriting on multiples folders
<p>Hello I need to Rewrite my URL :</p>

<p>I got two folders : <code>folder1/file.php</code> and I need just "file" in address bar
                  : <code>folder2/file.php</code> and I need just "file2" in address bar 
And I got other files in root </p>

<p>When I use </p>

<pre><code>RewriteCond %{REQUEST_URI} !^/(folder1)
RewriteRule (.*) /folder1/$1 [L]
</code></pre>

<p>It's working but if I access to <code>file2</code>, I can't because it's searching on <code>folder1/file2.php</code> and it's not found!</p>

<p>If I try to access to <code>index.php</code> it's searching on <code>folder1/index.php</code></p>

<p>I know how to remove file extensions but I can't find how to rewrite correctly my folders.</p>