# Connecting your own domain

This page covers every setting, rule, limit, permission, and Content Studio task for connecting your own domain to a *Web Hosting*. If you're new to connecting a domain, start with [Open your site on your own domain too](/getting-started/core-concepts/deployment-and-integration/web-hosting.md#switching-to-your-own-domain), which explains what your own domain is and when to use it. The rules for uploading site files and choosing a free address are in [Web Hosting settings and rules](/manual/deployment-and-integration/web-hosting.md).

The examples use the same online clothing store as Getting Started. The clothing store "Cozy Closet" has uploaded its online store site to the "Online Store" *Space* as the *Web Hosting* "My Clothing Store", and the site is public at `myclothes.weegloo.app`, a free address WEEGLOO provides. The store has also bought the domain `example.com`. A domain is the name part of the internet address customers type into the address bar to find a site. You buy a domain from a domain provider (for example, GoDaddy or Cloudflare), which sells domains and manages the settings of the domains you buy. The examples on this page set things up so customers reach the online store site at `shop.example.com`.

## Settings {#settings}

When you connect your own domain, the only thing you set yourself is the domain to connect. You can connect up to 5 domains to one site. You enter a domain in the "Set up Custom Domain" window, which opens when you click **Add** under **Custom Domain** in the **Address** section of the detail screen of a *Web Hosting* that has finished deploying. The values to register with your domain provider appear on screen once you start connecting ([You register three records with your domain provider](#three-records)), and the SSL certificate that lets your domain open securely with `https://` is issued automatically ([You don't need to prepare an SSL certificate](#ssl-certificate)). You don't set the record values or the SSL certificate yourself.

<!-- 캡쳐 필요(재촬영): 콘솔 1.7.30부터 페이지 머리말 오른쪽 위에 튜토리얼 버튼이 있다. 번역본 컷에는 있고 이 ko 컷에는 없다. 콘솔 변경분을 몰아 찍을 때 함께 다시 찍는다(decisions.md 27번) -->
![The detail screen of the Web Hosting "My Clothing Store". At the top right are the Web Hosting guide link and the Tutorial, Delete, and List buttons. The Basic information section has the Name field (My Clothing Store, 17 / 64) and the Description field (0 / 128). Under Subdomain in the Address section are the address https://myclothes.weegloo.app with a copy icon, the QR Code button, and the Edit button on the right. Below it, Custom Domain shows the number of connected domains, 0 / 5, the Add button, and the note "No Custom Domain is connected." The Deployment section has the unchecked Use SPA Mode checkbox and Archive file (the Deployment guide link, a note that index.html must be at the root, the currently deployed file of 1.08 KiB with its date and time, and the Replace File button). The right panel shows the Web Hosting's ID, version, and change history](/_img/en-US/manual/deployment-and-integration/images/web-hosting-02-deployed.webp)

| Setting | Description | Default | Constraints |
|---|---|---|---|
| **Custom Domain** | Your own domain, which customers use to reach this site. You enter it in the **Domain** field of the "Set up Custom Domain" window | No connected domain ("No Custom Domain is connected."). Without one, the site opens only at its free address | You can connect up to 5 domains to one site. The domains you can enter follow [Requirements for the domain you enter](#domain-requirements) |

### Requirements for the domain you enter {#domain-requirements}

In the **Domain** field of the "Set up Custom Domain" window, enter the address exactly as you'll share it with customers (for example, `shop.example.com`). The field already has `https://` in front of it, so leave out `https://` and any `/` at the end, and enter only the domain. After you enter the domain, click **Next** to start connecting.

The domain you enter must meet the following requirements. If it doesn't, you can't start connecting. Nothing appears while you type. When you click **Next**, the field's border turns red, and the requirement it breaks appears in red below the field, as in "Only letters, numbers, and hyphens are allowed." If the domain is already connected to another site, or can't be found in DNS, the reason also appears below the field. For example, if the domain is already connected to another site, "'shop.example.com' is already in use or reserved. Please try a different domain." appears below the field, and if the domain can't be found in DNS, "The domain 'shop.example.com' does not exist in DNS. Please set up the domain's DNS records first, then try again." appears below the field. In either case, the connection doesn't start.

- You can use only English letters, numbers, and hyphens (`-`). Uppercase letters are saved as lowercase.
- It must have at least two parts separated by periods (`.`). No part can start or end with a hyphen.
- The last part (`com` in `shop.example.com`) must be at least 2 letters long.
- If a domain contains characters other than English letters, enter it in its English-letter form (Punycode). A domain whose last part isn't in English letters can't be connected.
- You can enter up to 253 characters.
- The ending must be one that's actually in use, such as `.com` or `.co.kr`.
- It must be a domain you've finished buying from a domain provider. When you start connecting, WEEGLOO checks that the domain you bought (`example.com` if you entered `shop.example.com`) can be found in DNS. DNS is the system that serves as the internet's address book: for each domain, it holds the information needed to find that site. If the domain you bought can't be found in DNS, you can't start connecting. WEEGLOO doesn't sell domains.
- You can't connect a domain that's already connected to another site ([One domain connects to only one site](#one-domain-one-site)).

You can also connect a domain with only two parts, like `example.com` (a root domain). However, registering the traffic routing (`CNAME`) record on a root domain can stop other DNS settings on the same domain, such as your email settings, from working, and some providers don't allow it at all. So before you enter the domain, check whether your provider supports a record meant for root domains.

- If your provider supports a record meant for root domains (for example, Cloudflare's CNAME flattening), enter `example.com` and connect it. Register the traffic routing record as that root-domain record.
- If it doesn't, enter `www.example.com` and connect it. Send customers who arrive at `example.com` on to `www.example.com` with your provider's forwarding feature (a feature that passes visitors from one address to another). To set up forwarding, follow your provider's instructions.

### What the screen shows once you start connecting {#what-the-screen-shows}

When you click **Add**, enter a domain, and click **Next**, a panel titled with that domain name opens on the right. The panel shows three steps, **Register records**, **Check**, and **Verified**, and has the **Remove Custom Domain** button at the bottom. While the record information is being fetched, the **Register records** step shows "Fetching DNS record information...". You check the three records to register with your domain provider in the **Register records** step of this panel. A record is one line of information written in DNS for each domain, and CNAME and TXT are types of records. What each record does is summarized in [You register three records with your domain provider](#three-records).

Once the record information arrives, the **Register records** step shows the three records one per line, and expands them one at a time, starting with the traffic routing (`CNAME`) record at the top. An expanded record shows **Name** and **Value**, each with a copy icon. After you register that record with your domain provider, click **I've added it** below it. The next record expands. TXT records that are already confirmed are skipped. When you finish the last record, "All records are added. Check the status." and the **Check status** button appear. Clicking **Check status** moves you on to the **Check** step.

Even if you close the panel, the domain's row stays in the **Custom Domain** area. The row shows the domain with a copy icon, its status ("Preparing"), and **Continue**. Click **Continue** to pick up where you left off.

![The Set up Custom Domain window. A note says that once you enter your domain you'll see the DNS records to add, and the domain connects once those records are in place. The Domain field, with https:// in front of it, has shop.example.com entered. Below the field is a note that you need access to DNS settings at your domain registrar (GoDaddy, Cloudflare, …), along with the Cancel and Next buttons](/_img/en-US/manual/deployment-and-integration/images/custom-domain-01-add-dialog.webp)

![The shop.example.com panel that opened on the right after clicking Next. Step 1, Register records, shows Fetching DNS record information..., and steps 2, Check, and 3, Verified, are grayed out. The Remove Custom Domain button is at the bottom](/_img/en-US/manual/deployment-and-integration/images/custom-domain-02-started.webp)

![The Custom Domain area of the My Clothing Store detail screen. At the top right are 1 / 5 and the Add button, and a warning says the CNAME Value of every Custom Domain is origin.weegloo.app and the site won't open if the value is different. Below it, the shop.example.com row has a copy icon, the Preparing status, and the Continue link](/_img/en-US/manual/deployment-and-integration/images/custom-domain-03-area.webp)

![The Register records step of the shop.example.com panel. Below a note to add all of the records below in the DNS settings at your domain registrar, CNAME · routes traffic (No automatic check) is expanded, with Name shop.example.com and Value origin.weegloo.app, each with a copy icon. Below them are a warning to enter the fixed value above as the Value of the traffic-routing CNAME record and the I've added it button, followed by the collapsed TXT · domain ownership (Pending) and TXT · SSL certificate (Issuing)](/_img/en-US/manual/deployment-and-integration/images/custom-domain-06-records.webp)

![The Register records step after all records are added. CNAME · routes traffic (No automatic check), TXT · domain ownership (Pending), and TXT · SSL certificate (Issued) are collapsed, and below them are All records are added. Check the status. and the Check status button](/_img/en-US/manual/deployment-and-integration/images/custom-domain-07-check-status.webp)

| Part | What appears |
|---|---|
| **Custom Domain** title line | The number of connected domains (for example, `1 / 5`) and the **Add** button |
| Warning at the top of the area | "The CNAME Value of every Custom Domain is `origin.weegloo.app`. If it is different, the site will not open." A copy icon sits to the right of the value |
| Domain row | The connected domain (`shop.example.com`) with a copy icon, and on the right, the status ("Preparing") and **Continue** |
| Right panel | The domain name as the title, the **Register records**, **Check**, and **Verified** steps, and the **Remove Custom Domain** button at the bottom |

Once a domain is **Verified**, its row gains a QR code icon to the right of the domain, and **Continue** at the right end changes to **View**. Clicking **View** opens the same panel.

![The Custom Domain area after verification. The shop.example.com row has a copy icon and a QR code icon, and on the right a green circle, Verified, and View](/_img/en-US/manual/deployment-and-integration/images/custom-domain-10-verified-area.webp)

The *Web Hosting* list has a **Custom Domain** column. For a site with no domain of its own connected, this column shows only a dash. For a site with its own domain connected, it shows a circle indicating the status, `https://shop.example.com`, a copy icon, and a QR code icon. The circle is green when the status is **Verified**. <!-- TODO: 확인 필요: 도메인이 여러 개일 때 목록 칸의 모습 -->

![The Web Hosting list. In the My Clothing Store row, the URL column has https://myclothes.weegloo.app, and the Custom Domain column shows a green circle, https://shop.example.com, a copy icon, and a QR code icon. The Custom Domain column of the other row has only a dash](/_img/en-US/manual/deployment-and-integration/images/custom-domain-04-list.webp)

## Rules {#rules}

### You register three records with your domain provider {#three-records}

When a customer types `shop.example.com` into the address bar, the browser looks up this domain's records in DNS and goes to where the site is. So to connect your own domain, after you start connecting, you register the three records shown in the panel on the right in the DNS settings of the provider you bought the domain from.

| Record | Type | What it does | **Name** | **Value** |
|---|---|---|---|---|
| Traffic routing | `CNAME` | Sends customers who arrive at `shop.example.com` to the site | The connected domain as is (`shop.example.com`) | `origin.weegloo.app`. Every site uses the same value |
| Domain ownership | `TXT` | Confirms that you're the owner of this domain | The connected domain with a set name in front of it | A value set when you start connecting |
| SSL certificate | `TXT` | Confirms the domain so an SSL certificate can be issued for it | The connected domain with a set name in front of it | A value set when you start connecting |

A CNAME record is an instruction to send visitors who come looking for one name to wherever another name points. A TXT record is an instruction that stores a text value on a domain, and for connecting a domain, it's used to confirm that the person connecting it actually manages it.

- Register the type, **Name**, and **Value** exactly as shown on screen. Don't retype the values by hand: copy them with the copy icon to their right and paste them. How you enter **Name** differs by provider ([How you enter record names differs by provider](#record-names-at-your-registrar)).
- The traffic routing record's **Value** isn't the site's free address (`myclothes.weegloo.app`). If you enter the free address, the domain won't connect.
- Right after you click **Next**, the values of the two TXT records may not be ready yet. Meanwhile, the domain row shows **Preparing**, and the **Register records** step of the panel shows "Fetching DNS record information...". The values fill in automatically as soon as they're ready. If preparing them takes longer, "Record information is taking a little while to prepare. Please try again shortly." and the **Check again** button appear. Wait a moment, then click that button.
- You register and delete records at your domain provider. WEEGLOO doesn't change or delete the records you've registered there.
- If you delete the traffic routing record, the site stops opening on your own domain. Leave this record in place for as long as you use your own domain.

### How you enter record names differs by provider {#record-names-at-your-registrar}

Some domain providers have you enter the name in the **Name** field exactly as shown on screen, and others have you enter only the first part, without the domain you bought (`example.com`). Follow the instructions on your provider's screen to see which way it works. When you connect `shop.example.com`, enter these values in the **Name** field.

| Record | Providers that take the full name | Providers that take only the first part |
|---|---|---|
| Traffic routing (`CNAME`) | `shop.example.com` | `shop` |
| Domain ownership (`TXT`) | The **Name** value on screen, as is | The **Name** value on screen without `.example.com` at the end |
| SSL certificate (`TXT`) | The **Name** value on screen, as is | The **Name** value on screen without `.example.com` at the end |

With every provider, enter the type and **Value** exactly as shown on screen.

### Verification status shows on the two TXT records {#what-verification-checks}

After you register the records, click **Check status** in the **Register records** step. From then on, WEEGLOO checks the registered records and updates the verification status based on the result. Before you click **Check status**, the domain ownership record may stay at **Pending** even if you've registered the records. The **Check** step shows "Setup in progress. You can see the status of each item below." along with the status of Ownership verification (`TXT`) and SSL certificate issuance (`TXT`), and the **Check status** button below them. To see the result again, click this button.

- Changes you make at your domain provider can take up to 48 hours to take effect across the internet. If the records aren't confirmed right after you register them, give it some time and check again.
- The verification status appears in two places. Next to the domain is the status of the connection as a whole, and to the right of each of the two TXT records is that record's own status. For example, while the records haven't been confirmed yet, the screen shows **Pending verification** next to the domain, **Pending** for domain ownership, and **Issuing** for the SSL certificate.
- No verification status appears next to the traffic routing (CNAME) record, and this record isn't reflected in the status next to the domain either. Once the two TXT records are confirmed, go to `https://shop.example.com` yourself and check that the site opens.

The connection status next to the domain is one of the following.

| Status next to the domain | Description | What to do |
|---|---|---|
| **Preparing** | The values of the TXT records to register are being prepared | Wait until the values appear |
| **Pending verification** | The record values are ready but haven't been confirmed yet | Register the three records with your provider, then check the status again |
| **Setting up** | The records were confirmed, and the connection and SSL certificate are being set up. "Setting up the connection and SSL certificate." appears | Wait. To see the result, check the status again |
| **Verified** | Both TXT records are confirmed and the SSL certificate is issued, so the site can open on your own domain | Nothing |
| **Action needed** | There's a problem with a record, or the SSL certificate can't be used | Check the statuses to the right of the two TXT records and the notes below them |

While the status is **Setting up**, the screen doesn't check the status again on its own. To see the result, click **Check status**. Once it's **Verified**, the panel's **Verified** step shows `https://shop.example.com` with a copy icon, **QR code**, and **Open in new tab**. Below that, the note "Weegloo does not check the CNAME record. If the site does not open, make sure the CNAME Value is `origin.weegloo.app`." appears. To see the records you registered again, click **View records** in the **Register records** step.

To the right of each of the two TXT records, one of the following statuses appears. For a status that signals a problem, a note below the record also tells you what to do.

| Record | Statuses shown |
|---|---|
| Domain ownership (`TXT`) | **Pending** (not confirmed yet), **Configuring** (confirmed and being set up), **Verified** (confirmed), **Conflict** (conflicts with an existing DNS record; delete that record, then check again), **Not found** (the record can't be found; check that you registered it correctly) |
| SSL certificate (`TXT`) | **Issuing** (being issued), **Issued** (issued successfully), **Expiring soon** (about to expire), **Expired** (has expired), **Failed** (issuing failed; check the TXT record, then check again) |

![The Check step after clicking Check status. Below the note Setup in progress. You can see the status of each item below. are Ownership verification · TXT (Configuring), SSL certificate issuance · TXT (Issued), and the Check status button. The Register records step is collapsed with a check mark and View records](/_img/en-US/manual/deployment-and-integration/images/custom-domain-08-configuring.webp)

![The panel after reaching the Verified step. Register records and Check (Ownership verification and SSL certificate issuance) have check marks, and the Verified step has https://shop.example.com with a copy icon and the QR code and Open in a new tab buttons. Below that is a warning that Weegloo does not check the CNAME record, so if the site does not open, you should make sure the CNAME Value is origin.weegloo.app](/_img/en-US/manual/deployment-and-integration/images/custom-domain-09-verified.webp)

<!-- 캡쳐 필요: 도메인 옆 상태가 조치 필요일 때의 패널. 레코드 오른쪽의 Conflict 또는 Not found와 그 아래 안내가 보이게 / 사전 준비: TXT 값을 일부러 틀리게 등록한 도메인 -->

### You don't need to prepare an SSL certificate {#ssl-certificate}

An SSL certificate is a credential that protects what travels between a site and its customers by encrypting it. With a certificate, your domain opens securely with `https://`, and a padlock appears in the browser's address bar.

The certificate for your domain is issued automatically once the SSL certificate record (`TXT`) is confirmed. You don't need to buy a certificate separately, and there's no field for uploading one you already have. <!-- TODO: 확인 필요: 발급한 인증서가 기한 전에 자동으로 갱신되는지, 갱신할 때 TXT 레코드 두 개가 남아 있어야 하는지(검증을 마친 뒤 지워도 되는지) -->

### The free address still works after you connect a domain {#free-address-keeps-working}

- Even after you connect your own domain, you can keep using the free address `myclothes.weegloo.app`. The same site opens at both addresses.
- When you upload the site files again, the new content opens at both addresses. For the rules on uploading again, see [Web Hosting settings and rules](/manual/deployment-and-integration/web-hosting.md).
- Changing the free address's **Subdomain** doesn't affect your domain connection or the records you registered with your provider. That's because the traffic routing record's **Value** isn't the free address.
- If you listed the site's address in **Allowed referrers** of the *Delivery Access Token* the site uses to load content, `https://shop.example.com` must be on that list too. Otherwise, the site can't load content when it's opened on your own domain. The rules for the list are in [Allowed referrers decide which sites can use a token](/manual/access-and-permissions/token.md#allowed-referrers).

### One domain connects to only one site {#one-domain-one-site}

- You can connect up to 5 domains of your own to one site. The number of connected domains appears at the top right of the **Custom Domain** area, as in `1 / 5`. So one site can open at both `shop.example.com` and `www.example.com`, and each domain gets its own row and status. A site opens only at its connected domains and its free address.
- Across all of WEEGLOO, one domain connects to only one site. You can't connect a domain that's already entered on another site, whether that site is in the same *Space*, another *Space*, or another *Organization*. This applies even if that site hasn't finished verification.
- To move a domain to another site, first remove the connection from the site it's connected to now ([Move a domain to another site](#move-to-another-site)).
- If you can't connect your domain because a site in a *Space* or *Organization* you don't manage is already using it, contact customer support (support@weegloo.com). <!-- doc-host-keep: 글로벌 문서의 고객 지원 주소 -->

### When you change or remove a domain {#changing-or-removing}

- While the site is processing, you can't connect or remove your own domain ([While a deployment is processing and after it finishes](/manual/deployment-and-integration/web-hosting.md#deployment-processing)).
- There's no feature for changing a connected domain to a different one. To switch to a different domain, remove the current domain, then add the new one. The new domain needs its records registered from the start. For the traffic routing record, only **Name** changes to the new domain, and **Value** stays the same. Register the two TXT records with the names and values shown on screen for the new domain.
- If you remove a domain, the site no longer opens on that domain, only at the free address and any remaining domains.
- The removal confirmation window shows the note "If you add it again, you may need to register the DNS records from the start."
- After you remove a domain, it can take some time before the site stops opening on that domain.
- Removing a domain leaves the records you registered with your domain provider in place. Delete the records you no longer use at your provider.
- A domain whose connection you removed can be connected to another site again.
- Deleting the site removes its domain connection along with it. For when you can delete a site, see [Deleting items such as Locale, Tag, and Script](/manual/common/deletion.md#deleting-other-items).

### Sites installed from an app connect the same way {#sites-installed-from-apps}

On a site created by installing an app from the marketplace, you connect and remove your own domain the same way ([Sites created by an installed app](/getting-started/core-concepts/deployment-and-integration/web-hosting.md#sites-created-by-an-installed-app)). A domain the app's maker connected to their own site doesn't carry over to the installed site.

## Limits {#limits}

| Item | Limit |
|---|---|
| Number of sites with your own domain connected | Varies by plan. Check "Custom Domain" in [Pricing](/pricing/pricing.md#plan-comparison) |
| Domains connected to one site | Up to 5 |
| Sites one domain connects to | 1 across all of WEEGLOO |
| Domain length | 253 characters |

The number of sites with your own domain connected is counted per *Organization*. It's the total of such sites across all the *Space*s in that *Organization*.

- Once you reach the limit, you can't connect a domain to a site that doesn't have one yet.
<!-- TODO: 확인 필요: 요금제의 Custom Domain 한도를 사이트 수로 세는지 도메인 수로 세는지(지금 화면은 사이트 하나에 도메인을 최대 5개 연결할 수 있음), 한도에 이른 사이트에 도메인을 더 추가할 수 있는지 -->
- Removing a connection or deleting a site frees up a slot for another connection. You can also raise the limit by switching to a higher plan.

If you move to a lower plan or cancel and the number of connected sites goes over the new plan's limit, see [Moving down to a lower plan or canceling](/pricing/pricing.md#downgrading-and-canceling) for what happens.

## Required permissions {#permissions}

| What you want to do | Required permission |
|---|---|
| Connect or remove your own domain, and check the verification status | **Manage Web Hostings** in your role in that *Space* |
| View the *Web Hosting* screen, the connected domain, and the records | **Manage Web Hostings**. You need this permission even to view them |
| Register records with your domain provider | An account at the provider that can change that domain's DNS settings |

- You turn on **Manage Web Hostings** on the **Settings** tab of the role screen. For what this item lets you do, see [Settings permissions on the Permissions tab](/manual/access-and-permissions/role-and-permissions.md#permission-tab).
- This permission works only when you work with your own account. You can't connect your own domain or check the verification status with a *Space Access Token* or *Delivery Access Token* ([Settings permissions work only for people](/manual/access-and-permissions/role-and-permissions.md#settings-are-for-people)).
- How many sites can have your own domain is set by the *Organization*'s plan, not by permissions ([Limits](#limits)).

## Tasks in Content Studio {#tasks}

You do every task under **Custom Domain** in the **Address** section of the *Web Hosting* detail screen. To open the detail screen, click **Web Hostings** under **Services** in the "Online Store" *Space*'s left menu, then click the site's row in the list.

### Connect your own domain {#connect-a-domain}

These steps connect `shop.example.com` to the *Web Hosting* "My Clothing Store", which has finished deploying. You need to buy the domain from a domain provider beforehand ([Requirements for the domain you enter](#domain-requirements)).

1. Open the detail screen of the *Web Hosting* "My Clothing Store".
2. Under **Custom Domain** in the **Address** section, click the **Add** button. The "Set up Custom Domain" window opens.
3. Enter `shop.example.com` in the **Domain** field.
4. Click the **Next** button. The `shop.example.com` panel opens on the right.
5. Register the three records shown in the **Register records** step of the panel in your domain provider's settings. For how to register them, see [You register three records with your domain provider](#three-records) and [How you enter record names differs by provider](#record-names-at-your-registrar).
6. Each time you register a record, click **I've added it** in the panel. The next record expands.
7. Click **Check status**, which appears at the end. You move on to the **Check** step, and verification starts.

Even if you close the panel, you can pick up where you left off by clicking **Continue** in the `shop.example.com` row of the **Custom Domain** area. It can take a while for what you registered to take effect. How to check the verification status again is in [Check the verification status again](#check-the-status).

### Check the verification status again {#check-the-status}

These steps check the verification status of `shop.example.com` after you've registered the three records with your domain provider.

1. Open the detail screen of the *Web Hosting* "My Clothing Store".
2. In the **Custom Domain** area, click **Continue** in the `shop.example.com` row to open the panel.
3. Click **Check status** in the **Check** step of the panel. If you're still in the **Register records** step, click **I've added it** for each record in turn, then click the **Check status** that appears.
4. Check the status of Ownership verification and SSL certificate issuance in the **Check** step. Once both are confirmed, you move on to the **Verified** step.

You can see what the **Check** and **Verified** steps of the panel look like in [Verification status shows on the two TXT records](#what-verification-checks).

If both TXT records are confirmed, go to `https://shop.example.com` yourself and check that the site opens. If the status doesn't change or the site doesn't open, check the table in [Troubleshooting](#troubleshooting).

### Change to a different domain {#change-the-domain}

These steps change the address you share with customers from `shop.example.com` to `www.example.com`. There's no feature for changing a domain, so you remove the current domain, then add the new one.

1. Open the detail screen of the *Web Hosting* "My Clothing Store".
2. Remove the connection for `shop.example.com`. The steps are in [Remove the domain connection](#remove-the-domain).
3. Under **Custom Domain** in the **Address** section, click the **Add** button.
4. Enter `www.example.com` in the **Domain** field of the "Set up Custom Domain" window.
5. Click the **Next** button.
6. Register the three records shown in the **Register records** step of the panel with your domain provider. For the traffic routing record, only **Name** changes, to `www.example.com`.

Since you can connect several domains, you can also add the new domain first and remove the old one afterward. The three records for the old domain `shop.example.com` are no longer used, so delete them at your domain provider. If you listed the site's address in **Allowed referrers** of the *Delivery Access Token* the site uses, add `https://www.example.com` too ([Edit the description and Allowed referrers](/manual/access-and-permissions/token.md#edit-a-token)). After the change, until the site opens on the new domain, customers can reach it only at the free address ([When you change or remove a domain](#changing-or-removing)).

### Remove the domain connection {#remove-the-domain}

These steps remove the connection to `shop.example.com` so the site opens only at its free address.

1. Open the detail screen of the *Web Hosting* "My Clothing Store".
2. Open the panel of the domain to remove. In the `shop.example.com` row of the **Custom Domain** area, click **Continue** if verification isn't finished yet, or **View** if it's **Verified**.
3. Click the **Remove Custom Domain** button at the bottom of the panel. The "Remove Custom Domain" confirmation window opens with the note "Remove the Custom Domain shop.example.com? If you add it again, you may need to register the DNS records from the start."
4. Click **Remove** in the confirmation window.

![The Remove Custom Domain confirmation window, with the text Remove the Custom Domain shop.example.com? If you add it again, you may need to register the DNS records from the start. and the Cancel and Remove buttons](/_img/en-US/manual/deployment-and-integration/images/custom-domain-05-remove-confirm.webp)

After removing it, delete the three records you registered with your domain provider too. What happens after removal is summarized in [When you change or remove a domain](#changing-or-removing).

### Move a domain to another site {#move-to-another-site}

Say you've rebuilt the online store site and uploaded it as the *Web Hosting* "My Clothing Store Redesign". These steps move `shop.example.com` from "My Clothing Store" to "My Clothing Store Redesign".

1. Remove the connection to `shop.example.com` from "My Clothing Store". The steps are in [Remove the domain connection](#remove-the-domain).
2. Open the detail screen of the *Web Hosting* "My Clothing Store Redesign".
3. Under **Custom Domain** in the **Address** section, click the **Add** button.
4. Enter `shop.example.com` in the **Domain** field of the "Set up Custom Domain" window, and click **Next**.
5. Update the two TXT records registered at your domain provider to match the names and values now shown in the panel. Don't edit the traffic routing record, since its **Name** and **Value** stay the same.
6. In the panel, click **I've added it** for each record in turn, then click **Check status** and check the verification status.

From the moment you remove the connection from "My Clothing Store" until `shop.example.com` opens on the new site, customers can't reach the site at this domain. Move it at a time when few customers visit. Removing the connection lowers the number of sites with your own domain by one, so you can follow these steps even in an *Organization* that has reached its limit.

## Troubleshooting {#troubleshooting}

| Problem | Cause | What to do |
|---|---|---|
| You can't click **Next** | The **Domain** field of the "Set up Custom Domain" window is empty | Enter the domain to connect |
| Right after you upload the site again, you can't connect or remove your own domain | The site is processing | Try again after processing finishes ([While a deployment is processing and after it finishes](/manual/deployment-and-integration/web-hosting.md#deployment-processing)) |
| You can't start connecting with the domain you entered | The domain breaks the input requirements: you included `https://` or `/`, it contains characters other than English letters, numbers, and hyphens, or it has no period | Fix it to meet [Requirements for the domain you enter](#domain-requirements) |
| Right after buying the domain, you can't start connecting | The domain you bought (`example.com`) can't be found in DNS yet | Check that you've finished buying and registering it at your domain provider, then try again after a while |
| You can't connect your own domain to a second site | The number of sites with your own domain in the *Organization* has reached the plan's limit | Remove the connection from a site you don't use, or switch to a higher plan ([When you exceed a count limit](/pricing/pricing.md#over-count)) |
| You can't connect a domain another site was using | That domain is still connected to the other site | Remove the connection from that site first ([Move a domain to another site](#move-to-another-site)) |
| You can't connect a domain that isn't connected to any site you manage | A site in another *Space* or another *Organization* may have connected this domain first. Across all of WEEGLOO, a domain connects to only one site | Check whether a site in another *Space* of the same *Organization* has it connected. If it's being used somewhere you don't manage, contact customer support (support@weegloo.com) <!-- doc-host-keep: 글로벌 문서의 고객 지원 주소 --> |
| Right after you click **Next**, the TXT record values don't appear | Preparing the values takes a moment | Check again in a moment |
| You registered the records, but the verification status doesn't change | What you registered hasn't taken effect across the internet yet (up to 48 hours), or the name or value you entered at the provider differs from the screen. You may have entered the name in a different way from how your provider takes it | Give it some time and check the status again. Recheck the names and values on your provider's screen ([How you enter record names differs by provider](#record-names-at-your-registrar)) |
| Verification is done, but the site doesn't open on your own domain | The traffic routing (CNAME) record's value is wrong, or it hasn't taken effect yet. No verification status appears next to this record | At your provider, check that this record's **Value** is `origin.weegloo.app`. If you entered the free address, fix it |
| The site doesn't open at `www.example.com` (the connected domain is `shop.example.com`) | A site opens only at its connected domains and its free address. `www.example.com` isn't connected | Share the connected domain with customers. To use `www.example.com` too, connect it with **Add** under **Custom Domain** ([Connect your own domain](#connect-a-domain)) |
| Products don't appear when you open the site on your own domain, but they do at the free address | Your domain's address isn't in **Allowed referrers** of the *Delivery Access Token* the site uses | Open the token and add `https://shop.example.com` to **Allowed referrers** ([Edit the description and Allowed referrers](/manual/access-and-permissions/token.md#edit-a-token)) |
| After you change domains, the site doesn't open on the old domain | Removing the old domain disconnects it | Share the new domain with customers. Delete the old domain's records at your provider |
| The site opens neither at the free address nor on your own domain | The problem is with the site itself, not the domain connection. The *Organization*'s transfer volume this month may also have gone over the plan's allowance | Find the cause and the fix in [Web Hosting settings and rules](/manual/deployment-and-integration/web-hosting.md) and [When you exceed transfer volume or storage space](/pricing/pricing.md#over-usage) |

## Related docs {#related}

- [Deploying a website](/getting-started/core-concepts/deployment-and-integration/web-hosting.md): Covers what *Web Hosting* is and the flow from preparing site files to making the site public.
- [Web Hosting settings and rules](/manual/deployment-and-integration/web-hosting.md): Covers the rules for uploading and re-uploading site files, and for choosing the free address (Subdomain).
- [Token rules](/manual/access-and-permissions/token.md): Covers the rules and steps for editing a *Delivery Access Token*'s Allowed referrers after the site's address changes.
- [Role and permission rules](/manual/access-and-permissions/role-and-permissions.md): Covers how to turn on the **Manage Web Hostings** permission and what it lets you do.
- [Deletion rules](/manual/common/deletion.md): Covers when you can delete a site, and how deleting a site also removes its domain connection.
- [Pricing](/pricing/pricing.md): Covers how many sites can have your own domain on each plan.
- [API reference](/api/reference/cma/web-hosting.md#custom-domain): Covers technical specs, such as the request formats you need to connect your own domain and check its verification status from a program.
