title: public directory for .htaccess
body: <p>I have a dispatcher function in index.php so URLs like:</p>
  
  <p>/blog/show go to</p>
  
  <p>/index.php/blog/show</p>
  
  <pre>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
  &lt;/IfModule&gt;</pre>
  
  <p>How can I modify this so that I can dump all of my static files into a public directory but access them without public in the URL.</p>
  
  <p>For example /docs/lolcats.pdf accesses</p>
  
  <p>/public/docs/lolcats.pdf on the drive</p>
  
  <p>I tried this</p>
  
  <pre>RewriteCond %{REQUEST_FILENAME} !f
  RewriteRule ^(.*)$ public/$1 [QSA,L]</pre>