Next I named it myfile and uploaded it to resource folder (where all the pdfs are). So far, so good.
Next I rename the file .htaccess
Next I fire up the browser (Safari) go to the website. Here’s where things go bad. The website comes up okay, but all the image files are missing. Granted, this is a step up from when I tried putting the .htaccess file in the root directory (in that test the whole website disappeared).
Any idea why it works? Why doesn’t the FilesMatch *.pdf (which is spelled out in the SoftPress KnowledgeBase) work?
I don’t understand the specifics of why it works. I have in the past successfully used the same example you tried so why it’s not working for you I can’t say. As is the case with many things there are multiple ways to achieve the desired result and there may very well be a better way than mine.
Just be sure to test it in a lot of browsers, including IE.