I have a dispatcher function in index.php so URLs like:
/blog/show go to
/index.php/blog/show
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] </IfModule>
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.
For example /docs/lolcats.pdf accesses
/public/docs/lolcats.pdf on the drive
I tried this
RewriteCond %{REQUEST_FILENAME} !f RewriteRule ^(.*)$ public/$1 [QSA,L]