Hello, I am using mod_rewite as follows... RewriteEngine On RewriteRule ^(.*)$ /home/xxxxxx/public_html/member/plugins/protect/php_include/rewrite.php [E=PRODUCT_ID:1;2;5] Now I currently have 6 products. Purchasing Products 1 and 2 give you blanket access to all 6 products, but purchasing products 3-6 only give you access to those directories. I've found that products 1 and 2 work and give you complete access. But anyone purchasing 3-6 get redirected back to the login page and receive the Access is not allowed. Please go to "Membership information page" to renew or add subscription message. What am I doing wrong? I also tried it with a semi-colon after the final product, thinking it might have been that, but that didn't work either. RewriteEngine On RewriteRule ^(.*)$ /home/xxxxxx/public_html/member/plugins/protect/php_include/rewrite.php [E=PRODUCT_ID:1;2;5;] I am putting the right products in the .htaccess file for each directory, btw. BTW, thanks, the membership script has already paid for itself in only a few days. JH
I'm not sure if I understand question - just add product numbers to this line RewriteRule ^(.*)$ /home/xxxxxx/public_html/member/plugins/protect/php_include/rewrite.php [E=PRODUCT_ID:1;2;5] so it will be (for example): RewriteRule ^(.*)$ /home/xxxxxx/public_html/member/plugins/protect/php_include/rewrite.php [E=PRODUCT_ID:1;2;5;6;8;9]
Hi Alex, I'll try and explain it... On my admin page, paid members redirect to /member/downloads/ This just displays a default php page which has links to 4 different subdirectories. Inside the /member/downloads/ directory I have the following .htaccess file. RewriteEngine On RewriteRule ^(.*)$ /home/xxxxxx/public_html/member/plugins/protect/php_include/rewrite.php [E=PRODUCT_ID:1;2;3;4;5;6] I have 6 products. Product 1 - is a 3 month membership (to everything - all subdirectories of member/downloads) Product 2 - is a 12 month membership (to everything - all subdirectories of member/downloads) Product 3 - is a 1 month membership (access to only member/downloads/sub1) Product 4 - is a 1 month membership (access to only member/downloads/sub2) Product 5 - is a 1 month membership (access to only member/downloads/sub3) Product 6 - is a 1 month membership (access to only member/downloads/sub4) Inside sub directory 1, I have placed an .htaccess file with the following contents... RewriteEngine On RewriteRule ^(.*)$ /home/xxxxxx/public_html/member/plugins/protect/php_include/rewrite.php [E=PRODUCT_ID:1;2;3] So anyone with a membership of 1,2,3 should be able to access this directory. But 4,5,6 aren't allowed. Inside sub directory 2, I have placed an .htaccess file with the following contents... RewriteEngine On RewriteRule ^(.*)$ /home/xxxxxx/public_html/member/plugins/protect/php_include/rewrite.php [E=PRODUCT_ID:1;2;4] So anyone with a membership of 1,2,4 should be able to access this directory. But 3,5,6 aren't allowed. And so on for the other directories... The problem is that I've found that only people purchasing products 1 and 2 work and give you complete access to all subdirectories of members/downloads. But anyone purchasing products 3-6 only get redirected back to the login page and receive the Access is not allowed. Please go to "Membership information page" to renew or add subscription message. I know I must be doing something wrong here, but am baffled. Unfortunately I have members that have paid for products 3-6 and cannot access anything, they don't even see the default php page in the /members/downloads/ directory. When they attempt to login, they get the 'redirecting you to protected content page', then it just comes back up with the login page telling them they need to add/renew a subscription. And like I said, products 1 and 2 work fine. Sorry for the long winded explanation.