I've searched this forum without finding this scenario, and tried a few experiments without luck.
I've got a file I'm restricting with s2member's File Download Restrictions. The file in question is a Flash animation (lab.swf), but this question would apply to a protected .html file as well. This Flash file references another flash file (beaker.swf). Before we attempted to restrict access to the file, the container animation used a relative reference to the second animation, assuming it is in the same directory. So, lab.swf has the Flash equivalent of <img src="beaker.swf" /> in it.
Now that our link to the container file uses a query string
(e.g. http://example.com/?s2member_file_download=lab.swf ) , relative links lose the query string. The second file's HTTP request ends up like this:
(e.g. http://example.com/beaker.swf )
This file, of course, does not exist, and s2member never gets a change to process the s2member_file_download parameter.
We have the option of recompiling all our .swf files with hard-coded links including the query string, but this does not work when we deploy these files in other ways.
Is there a way to use relative links in a download-protected document? Perhaps use a virtual directory instead of a query string to link to the container file? Some other clever hack I'm overlooking?
FWIW, I'm new to s2member, fairly new to WordPress, and a 20-year web programmer veteran.
-dave
ps. I'm still evaluating s2member vs. other plugins for this project, and so far YOU GUYS ROCK!!!