Page 1 of 1

Problem with html page protection!

PostPosted: January 16th, 2012, 11:27 am
by sb5101
I need some help. I want to protect an HTML page. I placed the complete page inside (the page also contains a swf file that runs the page, if that’s makes any difference) in the s2member-files folder. When I try to access the page the screen completely goes blank.
I believe the page is trying to access other files in the folder to make the page load but the access is denied. I have tried everything to make it work. Help please.

Thank You

Re: Problem with html page protection!

PostPosted: January 16th, 2012, 12:31 pm
by squizeers
i am trying to do exactly same. And I have the same problem.

I have folder "A" with all the files (xml,swf,html) in the s2member-files folder. Html file embeds the swf video.
I have a post in the site that links to html file in folder"A". When I click on the link, it gives me a white blank page.
I have also used Default Inline File Extensions - html in the configuration but no luck. any help will be much appreciated.
thank you.

Re: Problem with html page protection!

PostPosted: January 19th, 2012, 2:39 pm
by Jason Caldwell
Thanks for bringing this thread to my attention.
~ I'm reviewing now. One moment please.

Re: Problem with html page protection!

PostPosted: January 19th, 2012, 2:51 pm
by Jason Caldwell
Thanks for your patience.

A similar question was asked in the past, and I addressed it here.
viewtopic.php?f=4&t=14643&p=32789&hilit=base+href#p32717

However, since that time, s2Member has made it possible to link directly to protected files with a built-in facility to handle Advanced Mod-Rewrite Linkage, which I believe resolves this completely, so long as you link to your protected files (i.e. your HTML file that has the embedded SWF) using Advanced Mod-Rewrite Linkage. For further details, please check your Dashboard under: s2Member -> Download Options -> Advanced Mod-Rewrite Linkage.

So for example... I might serve this file to a Member who is logged-in.
Code: Select all
http://www.example.com/wp-content/plugins/s2member-files/s2member-file-inline/page.html
Which might contain an <embed src="movie.swf" /> (relative path)

Re: Problem with html page protection!

PostPosted: January 19th, 2012, 4:20 pm
by sb5101
Thanks Jason, I have tried all the possibilities in Adv. Mod-Rewrite Linkage with no luck. Any other thoughts?

Thanks
LG

Re: Problem with html page protection!

PostPosted: January 19th, 2012, 8:05 pm
by Jason Caldwell
Thanks for the follow-up.
sb5101 wrote:Thanks Jason, I have tried all the possibilities in Adv. Mod-Rewrite Linkage with no luck. Any other thoughts?

Thanks
LG
No, so sorry. Please submit a Dashboard login through this private contact form along with instructions on how to reproduce this. We'll be happy to review this as it exists on your installation.

Re: Problem with html page protection!

PostPosted: January 20th, 2012, 11:11 am
by Jason Caldwell
Thank you. Details and video received, thanks for that. I'm investigating now.

Re: Problem with html page protection!

PostPosted: January 20th, 2012, 11:36 am
by Jason Caldwell
Investigation completed. I found that your server is running W3 Total Cache with GZIP enabled, and this was affecting s2Member's functionality, as described in this recent bug discovery. See this link for temporary workarounds until the next maintenance release of s2Member, which will resolve this.

See: viewtopic.php?f=4&t=16510&p=60958#p59497

I've corrected this on your installation by adding this section to your .htaccess file.
Code: Select all
<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteCond %{THE_REQUEST} (?:(?:^|\?|&)s2member_file_download\=.+|(?:^|/)s2member-files/.+)
   RewriteRule ^(.*)$ - [E=no-gzip]
</IfModule>
I'm sending you an email with some additional details which are site-specific. So look for that to come shortly. Thanks again for the video walk-through of the problem.

For the benefit of other readers, a video walk-through is VERY helpful in debugging things like this. If you're on a schedule, this can help us help you quicker! See: http://www.techsmith.com/download/jing/default.asp

Re: Problem with html page protection!

PostPosted: January 20th, 2012, 12:48 pm
by sb5101
Working now, I would have never figured that out!

Tanks so much
LG