I'm taking my first stab at creating a mini-MVC to better understand the concepts behind such a design. I'm using:
RewriteCond %[REQUEST_FILENAME] !-d
RewriteCond %[REQUEST_FILENAME] !-f
RewriteCond %[REQUEST_FILENAME] !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
to rewrite my URLS and it works great except for my css and js files. I thought that the "!-f" line would take care of these, but if I run a script with:
<link rel="stylesheet" href="public/css/default.css" />
then, I think that it's still treating my link as something to be rewritten. Any help with this would be appreciated.