# Multisite Access

*Article Topics:* [*Member* ](/getting-started/common-topics/members.md)

Multisite Access allows your [members](/additional-resources/common-terms.md#member) to access more than one paid [site](/additional-resources/common-terms.md#site). This can be done by editing your .htaccess file to reflect the following:

## 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"    
```

## AuthMySQLUserCondtion

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.&#x20;

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)
```

## Related Articles

{% content-ref url="/pages/L1vEVUrADQB9qlnlfd35" %}
[Member Logging](/nats-admin/members/further-reading/member-logging.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.toomuchmedia.com/nats-admin/members/further-reading/multisite-access.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
