How to send Content-Disposition headers in apache for ALL files?
- by user37900
I have seen similar questions, but the answers currently posted do not work for me.
I am trying to get all files to prompt user to download but .html and .jpg files are still being displayed.
here is what I have in my httpd.conf
<Location /testfiles>
SetEnvIf Request_URI "^.*/([^/]*)$" FILENAME=$1
Header set "Content-disposition" "attachment; filename=%{FILENAME}e"
UnsetEnv FILENAME
</Location>
What am i doing wrong ?
Many thanks