title: How to redirect folders to index.php using .htaccess?
body: <p>Folder structure:</p>
  
  <pre><code>/index/
  /upload/
  /something/
  </code></pre>
  
  <p>These folders don't have .htaccess in them(and shouldn't).</p>
  
  <p>When accessing <strong><a href="http://site.com/something" rel="nofollow">http://site.com/something</a></strong> it redirects to <strong><a href="http://site.com/something/url=something" rel="nofollow">http://site.com/something/url=something</a></strong>, which is not desired.</p>
  
  <pre><code>RewriteEngine on
  
  # RewriteBase /base/ #
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]
  </code></pre>
  
  <p>Adding another rewrite condition for appending '/' at the end of folders makes an additional(and unnecessary) request, also not nice.</p>
  
  <p>How do I write the rule so that even folders are sent directly to the front controller without any unwanted redirects?</p>