Hi. I generate a CSV-file from a mysql_query. That works fine, and I can see the file being created and such. It works. In my .htaccess I have a deny from all rule for certain filetypes: <FilesMatch "\.(inc|txt|html|csv)$"> order allow,deny deny from all </FilesMatch> Code (markup): Unfortunately, this also mean I can't just put a link to the CSV-file from the page it's being generated on - I get an "access denied" if I try to open it or download it. So... how do I fix this? I would still like for anyone not logged in as admin to not be able to download the file, or see it, for that matter, but how do I allow myself to download it?
Nevermind - I found the answer Just made another .php-file which opens, reads and downloads the csv-file