NATS4 Multisite Access
General .htaccess File
AuthName "Members Only" AuthType Basic AuthGroupFile /dev/null AuthMySQLHost localhost AuthMySQLDB db_name AuthMySQLUser db_user AuthMySQLPassword password AuthMySQLUserTable member_auth AuthMySQLNameField username AuthMySQLPasswordField password AuthMySQLPwEncryption none AuthMySQLUserCondition "siteid=N"
In the last line of the example above, siteid=N should be a site ID number. These instructions will only change that last line; the following explains what it means:
- siteid=N limits the member to that particular site.
If you remove "siteid=N", your members will be able to access all of your sites. The following line will allow users to access sites number two, three, and seven:
siteid in (2,3,7)
The following line will give full members multi-site access, but trial members will only be able to access site number one:
((trial=1 and siteid=4) or trial=0)