[Sugester V2 EN](https://sugester.intum.pl/kb/sugester-v2-en.md) / [Knowledge Base](https://sugester.intum.pl/kb/sugester-v2-en/knowledge-base.md)

# [Connecting Your Own Domain to the Knowledge Base](https://sugester.intum.pl/kb/sugester-v2-en/connecting-your-own-domain-to-the-knowledge-base.md)

## Custom Domain for Knowledge Base

You can link each Knowledge Base to your own domain, e.g. **help.mycompany.pl**. This way, customers will have access to the documentation at your company's address, and the URLs of the entries will be short and readable.

### How do the URLs change?

<table>
<tr><th>Without a domain</th><th>With a custom domain</th></tr>
<tr><td><code>yourcompany.sugester2.pl/kb/help/page-menu</code></td><td><code>help.mycompany.pl/page-menu</code></td></tr>
<tr><td><code>yourcompany.sugester2.pl/kb/help/c</code></td><td><code>help.mycompany.pl/c</code></td></tr>
<tr><td><code>yourcompany.sugester2.pl/kb/help/</code></td><td><code>help.mycompany.pl</code></td></tr>
</table>
The prefix `/kb/database-name/` disappears — entries are available directly under the domain.

## How to link a domain?

### 1. Add the domain in the panel

Go to **Settings → Domains** → **New domain**.

Enter the domain address (e.g. `help.mycompany.pl`) and select **Knowledge Base** as the entity type, then specify the particular base.

### 2. Configure DNS

At your domain provider, add a DNS record:

- **CNAME**: `help.mycompany.pl` → `sugester.intum.com`
- or **A record**: `help.mycompany.pl` → server IP address

DNS propagation usually takes a few minutes (up to 24 hours).

### 3. Assign the domain to the Knowledge Base

Go to edit the Knowledge Base and in the **Domain** field select the added domain. After saving:
- the prefix will be automatically moved to `domain_prefix`
- the base URL will change to the domain address

### 4. Clear domain_prefix (optional)

If you want the shortest URLs (without any prefix after the domain), clear the **domain_prefix** field in the base edit. This way:
- `help.mycompany.pl/` → main page of the base
- `help.mycompany.pl/entry-name` → entry
- `help.mycompany.pl/c` → list of categories

### 5. SSL Certificate

The SSL certificate will be generated automatically after DNS propagation. The base will be available via HTTPS.

## Redirect to the main domain

In the base settings, you can enable the **Redirect to main domain** option. This way, if someone accesses the base via the old URL (e.g. `yourcompany.sugester2.pl/kb/name/...`), they will be automatically redirected to your custom domain.

## Notes

- One domain can be assigned to one Knowledge Base
- Old URLs (with the prefix `/kb/name/`) still work in parallel
- The domain must be validated (DNS must point to the server) before the base becomes available on it