title: How do I prevent mod_rewrite from treating the URL like a directory?
body: <p>I'm using the rewrite rule <code>RewriteRule ^edit/blog/([^/]*)$ /edit?blog=$1 [L]</code>, trying to redirect <code>http://foo.bar/edit?blog=foobar</code> to <code>http://foo.bar/edit/blog/foobar</code>. It IS redirecting to the page, but it is also treating the URL as a directory, and the resources (stylesheets, scripts, etc) are unable to be found because of this. How do I prevent this from happening?</p>
  
  <p><strong>Note</strong>: The rewrite rule says <code>edit?blog=foobar</code> and not <code>edit.php?blog=foobar</code> because earlier in the .htaccess file, I remove .php extensions. I already tried doing it with the .php extension, but got the same results.</p>