# Configuring domains

Often you will find that the content on your website is spread across multiple domains, whether it's a blog subdomain like `blog.example.com` or a completely different domain like `another-example.com`. In that case, you can add multiple domains to your Collection.

### Add a domain to a Collection <a href="#add-a-domain-to-a-collection" id="add-a-domain-to-a-collection"></a>

1. Navigate to the [Domains](https://app.search.io/collection/domains) section.
2. Click *"Add domain"* from the top right of the page.
3. Enter the url of the domain you want to add.
4. Ensure the *"Crawling"* checkbox is checked if you want to crawl and index the content of the domain.
5. Click *"Add"*.

The Crawler will immediately begin indexing pages from the new domain.

![](/files/V7tQwr7XzZ07mSYvEtkV)

### Domain configuration <a href="#domain-configuration" id="domain-configuration"></a>

You can configure settings for each domain in the following ways:

**Crawling:** If enabled, the crawler will periodically visit pages in this domain and update your Collection with any changes. If turned off, the pages on this domain will not be updated in your Collection.

**Search from domain:** If enabled, search requests coming from this domain are authorized. Any search interface embedded in this domain will be authorized to make search requests to this collection. A common use case when you will only have this turned on is when you want to allow staging websites or testing environments (e.g. Netlify or Codesandbox). In this case, you will add the domain of the testing environment (e.g. testsite.netlify.com) as an additional domain and turn off crawling for that domain.

{% hint style="info" %}
Turning off crawling for a domain does not remove pages of that domain from the collection. If you want to remove the records from the domain but still keep the domain, you can add an exclude rule via the [Crawler rules](https://app.search.io/collection/crawler/rules) section.
{% endhint %}

### Remove a domain from a Collection <a href="#remove-a-domain-from-a-collection" id="remove-a-domain-from-a-collection"></a>

1. Log in to the Console and select the relevant Collection
2. Navigate to the [Domains](https://app.search.io/collection/domains) section.
3. Click the "Delete" button for the domain you want to remove. Note that removing a domain also removes records of that domain from the collection.


---

# 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.search.io/documentation/guides/content-websites/configuring-domains.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.
