> ## Documentation Index
> Fetch the complete documentation index at: https://docs.commert.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage Domains in Commert Admin

In this guide, you'll learn what domains are, the domain your store gets by default, and how to connect and manage your own domain.

## What is a Domain?

A domain is the web address customers type to reach your store, like `mystore.com`. Your store can have more than one domain, but one of them is always the **primary domain** — the main address where your store is served.

### The Domain You Get by Default

When your store is created, Commert automatically gives you a free subdomain in the form `your-store.commert.store`. This subdomain is:

* **Primary** — your store opens on it right away, with no setup needed.
* **The default domain** — it can't be deleted, so your store always has a working address to fall back on.

You can keep using this subdomain forever, or connect your own custom domain (like `mystore.com`) when you're ready.

### Domain Types

* **Subdomain** — a free address provided by Commert that ends in `.commert.store`. It works instantly.
* **Custom Domain** — a domain you already own (like `mystore.com`). It needs a few DNS records before it goes live.

<Note>
  A store can have up to **2 domains** in total, and at most **1 custom domain**.
</Note>

***

## View Domains

To view the domains connected to your store, go to Settings → Domains. Here you can see every domain, its type, whether it's the primary domain, and its status.

<img src="https://mintcdn.com/commert/3Bw15BXz-LT0pJjy/images/user-guide/domains/domains-list.png?fit=max&auto=format&n=3Bw15BXz-LT0pJjy&q=85&s=d1620b2bf8138dcdb30925c4d93f7642" alt="Domains list" width="2400" height="1612" data-path="images/user-guide/domains/domains-list.png" />

***

## Add a Domain

To add a domain:

1. Go to Settings → Domains.
2. Click the "Add Domain" button at the top right.
3. In the form that opens:
   * In the Domain field, enter the domain. For a custom domain, enter the address you own (like `www.mystore.com`). For a subdomain, enter the name you want before `.commert.store`.
   * Under Type, choose "Custom Domain" or "Subdomain".
   * Turn on "Redirect to Primary" if you want visitors on this domain to be sent to your primary domain instead. (More on this [below](#redirect-to-primary).)
4. Click the Save button.

<img src="https://mintcdn.com/commert/3Bw15BXz-LT0pJjy/images/user-guide/domains/add-domain-form.png?fit=max&auto=format&n=3Bw15BXz-LT0pJjy&q=85&s=f710ba3be501f46b878a15e23d4f7cec" alt="Add domain form" width="2400" height="1612" data-path="images/user-guide/domains/add-domain-form.png" />

A new domain is never made primary on its own. A subdomain works straight away, while a custom domain needs DNS setup first.

***

## Connect a Custom Domain

After you add a custom domain, open it from the list to see its DNS configuration. To make your domain point to your store, add the listed records at your domain registrar (the company you bought the domain from, like GoDaddy or Namecheap).

<img src="https://mintcdn.com/commert/3Bw15BXz-LT0pJjy/images/user-guide/domains/domain-detail.png?fit=max&auto=format&n=3Bw15BXz-LT0pJjy&q=85&s=0a7031458db203c3b78b1b740ec0b0db" alt="Domain details with DNS configuration" width="2400" height="1612" data-path="images/user-guide/domains/domain-detail.png" />

The records usually include:

* A **CNAME** record that points your domain to Commert.
* **TXT** records that prove you own the domain and let Commert issue an SSL certificate (so your store loads securely over `https`).

You don't need to do anything after adding the records. Commert checks them automatically every few minutes and updates the status once they take effect. If you'd like to check right away, click "Check now".

***

## Redirect Your Root Domain to www

A root domain (also called the apex), like `mystore.com` without `www`, usually can't point to us directly. So if a customer types `mystore.com`, set up a redirect to your `www` address so they still reach your store at `www.mystore.com`.

You set this up once at your domain registrar (where you bought the domain). On the custom domain's details page, the "Redirect your root domain" section shows the exact settings to enter:

* **Forward from:** `mystore.com` (your root/apex domain)
* **Forward to:** `https://www.mystore.com` (your `www` address)
* **Redirect type:** Permanent (301)
* **URL masking / forwarding with masking:** Off — it must be a real redirect, not a frame.

Pick your registrar (GoDaddy, Namecheap, Cloudflare, and others) from the list on that page for step-by-step instructions. Once it's saved, opening `http://mystore.com` should automatically take visitors to `https://www.mystore.com`.

<Note>
  This apex redirect is set up at your registrar, so Commert can't verify it automatically. To confirm it works, open your root domain in a browser and check that it lands on the `www` address.
</Note>

***

## Domain Statuses

The details page shows a few statuses that tell you whether your domain is ready:

* **Connection Status** — whether the domain is connected and serving your store.
* **Verification Status** — whether your DNS records have been confirmed (Pending, Verified, or Failed).
* **SSL Status** — whether the secure certificate is ready (Pending, Active, or Failed).
* **DNS Configured** — whether the required records are in place.

A custom domain is ready once its Verification is "Verified" and SSL is "Active".

***

## Set the Primary Domain

The primary domain is the main address where your store is served. Your store always has exactly one primary domain.

To make another domain the primary:

1. Go to the domain's details page.
2. Click the <Icon icon={"ellipsis"} size={12} /> icon at the top right of the first section.
3. Choose "Set as Primary Domain".

<img src="https://mintcdn.com/commert/3Bw15BXz-LT0pJjy/images/user-guide/domains/domain-actions-menu.png?fit=max&auto=format&n=3Bw15BXz-LT0pJjy&q=85&s=a320438638250b2b0b66f1cb46598f08" alt="Domain actions menu" width="2400" height="1612" data-path="images/user-guide/domains/domain-actions-menu.png" />

Keep these rules in mind:

* A domain must be **active** before it can become primary.
* A **custom domain** must be **verified with an active SSL certificate** before it can become primary. This protects your store from going to an address that isn't ready yet.

***

## Redirect to Primary

If you have more than one domain, you can send visitors from a secondary domain to your primary one. Turn on "Redirect to Primary" for the secondary domain (while adding it or by [editing it](#edit-a-domain)).

For example, if your primary domain is `www.mystore.com` and you turn this on for `shop.mystore.com`, anyone who opens `shop.mystore.com` is automatically taken to `www.mystore.com`. This keeps a single, consistent address for your store.

***

## Edit a Domain

To edit a domain:

1. Go to the domain's details page.
2. Click the <Icon icon={"ellipsis"} size={12} /> icon at the top right of the first section.
3. Choose Edit from the dropdown.
4. In the side window that opens, you can change whether the domain is active, and whether it redirects to the primary domain.
5. Click the Save button.

<img src="https://mintcdn.com/commert/3Bw15BXz-LT0pJjy/images/user-guide/domains/edit-domain-form.png?fit=max&auto=format&n=3Bw15BXz-LT0pJjy&q=85&s=e09bbe735eea4fd6a079287cdc3366eb" alt="Edit domain form" width="2400" height="1612" data-path="images/user-guide/domains/edit-domain-form.png" />

<Note>
  You can't deactivate the primary domain. Make another domain primary first.
</Note>

***

## Delete a Domain

<Note type="warning">
  Deleting a domain is irreversible.
</Note>

To delete a domain:

1. Go to the domain's details page.
2. Click the <Icon icon={"ellipsis"} size={12} /> icon at the top right of the first section.
3. Choose Delete from the dropdown.
4. Confirm the deletion in the pop-up.

Two domains can't be deleted:

* The **primary domain**. Set another domain as primary first, then delete this one.
* The **default subdomain** (`your-store.commert.store`). It always stays so your store keeps a working address.
