Hi
I wasnt sure where to stick this, so Im asking this crowd
I am putting together a website which works on an MVC principle, my own framework, and need some help with the .htaccess file.
Specifically, if I want to make a pdf available for download, my url parser is treating the request for the file like any other visitor on the website and naturally coming into some trouble as a result.
I tried setting a rewrite rule for files of a certain type,
RewriteCond %{REQUEST_URI} !public/files
RewriteRule ^(.*\.(pdf|txt|doc|xls|ppt|pptx|xlsx|docx|psd|ai|cdr))$ public/files/$1 [L,PT]
but thats going to mess with every link thats one of those filetypes - is there a better option? something which will allow all requests for files from the public/files directory to not be redirected to my controller...? (index.php)