ddantes
asked on
Force file download
When visitors click on a link to a pdf file in my website, I would like them to see a dialog box which invites them to save the file, instead of opening it. This would avoid needing to instruct them to right click and save as. I'm unfamiliar with htaccess, but I created one with the intention of forcing download of pdf files. Instead, it created a server access problem. Please advise.htaccess.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I think this is an issue for my web host. If I place the .htaccess file in other directories which contain pdf files, the "save/open" dialog is triggered by accessing the pdf. The server error happens only in a particular folder, which is in my secure website. I'll check the error log and discuss with web host.
ASKER