Welcome! Log In Create A New Profile

Advanced

Don't Understand The Product Versus Groups

Posted by admin 
Don't Understand The Product Versus Groups
August 10, 2009 12:58PM
Say I have 3 subscriptions:

- 1st has to protect folder /demo1
- 2nd has to protect folder /demo1 + /demo2
- 3rd has to protect folder /demo2 + /demo3

How do you put this in the add product and how is .htaccess and .htgroup updated accordingly ?

Thanks

Pat
Re: Don't Understand The Product Versus Groups
August 10, 2009 12:59PM
It is good question.

You create 3 products from aMember CP :
Product1 : URL = /demo1/
Product2 : URL = /demo2/
Product3 : URL = /demo3/

You must add links to files:
to file /demo2/index.html -> add link to /demo1/
to file /demo3/index.html -> add link to /demo2/

Then, you add(edit) the following lines to .htaccess files:
to file /demo1/.htaccess -> Require group PRODUCT_1 PRODUCT_2
to file /demo2/.htaccess -> Require group PRODUCT_2 PRODUCT_3
to file /demo3/.htaccess -> Require group PRODUCT_3

.htpasswd file contains list of all active members (having completed and not-expired subscriptions) and their passwords.
.htgroup file contains list in the following form:
PRODUCT_1: login1 login2 login3
PRODUCT_2: login2 login5 login8
PRODUCT_3: login4 login1 login11
it contains a separate line for every product, followed by list of usernames which have active subscription to the product.
Re: Don't Understand The Product Versus Groups
August 10, 2009 01:00PM
Thank you very much
I will try that
Sorry, only registered users may post in this forum.

Click here to login