> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Set a Domain for Wix-Hosted Pages

## Article: Wix Pages Domain

## Article Link: https://dev.wix.com/docs/go-headless/business-solutions/wix-hosted-pages/set-a-domain-for-wix-hosted-pages.md

## Article Content:

# Set a Domain for Wix-Hosted Pages

Wix Headless provides you with the flexibility to create an app or site on any platform and take advantage of Wix's business solutions via APIs. However, for some processes, such as authentication and checkout, you can save time and effort by using standard pages Wix implements for you. Wix incorporates these [Wix-hosted pages](https://dev.wix.com/docs/go-headless/business-solutions/wix-hosted-pages/about-wix-hosted-pages.md) into the flow of your external site.

## Wix pages domain

Wix hosts your project's Wix-hosted pages as a separate website with a unique site domain. By default, that domain is a free Wix domain. This domain doesn't match your external frontend's domain.

In self-managed projects, such as vibe coding platforms, visitors leave your frontend domain when they're [redirected](https://dev.wix.com/docs/go-headless/business-solutions/wix-hosted-pages/about-wix-hosted-pages.md#redirects-in-self-managed-projects) to a Wix-hosted page for processes like checkout.

You can [set up a custom domain](#connect-a-custom-domain), such as a [subdomain](#subdomain-configuration) of your external frontend, to create a seamless visitor experience. This requires a premium plan.

> **Note:** You can't connect your external site's domain itself.

## Subdomain configuration

Consider [connecting the subdomain](https://support.wix.com/en/article/connecting-a-subdomain-to-an-external-resource) of your external site's domain as a custom domain. For example, if your external site is at `external-site.com`, you can set `portal.external-site.com` as the domain that visitors see when they're redirected to a Wix-hosted page.

You can create and manage the subdomain in your external frontend's domain provider, outside of Wix. Domain registrars and DNS providers such as Cloudflare typically support this. Some external hosts, including many vibe coding platforms, don't provide this capability.

If you can't create a subdomain, keep the free Wix domain or connect a different custom domain through Wix using the steps below.

## Connect a custom domain

To connect a custom domain:

1. In your project dashboard, go to **Settings** > **Development & integrations** > [**Headless Settings**](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Foauth-apps-settings).
2. On the **Headless Settings** page, scroll down to the **Manage URLs** section.
3. In the **Wix pages domain** section, click **Manage domain** and follow the instructions to either [connect a domain you already own](https://support.wix.com/en/article/connecting-a-domain-purchased-elsewhere) or [purchase a new domain](https://support.wix.com/en/article/purchasing-a-domain-from-wix-3133977).

## See also

- [About Wix-Hosted Pages](https://dev.wix.com/docs/go-headless/business-solutions/wix-hosted-pages/about-wix-hosted-pages.md)
- [Connect a Domain You Already Own](https://support.wix.com/en/article/connecting-a-domain-purchased-elsewhere)
- [Connecting a Subdomain to an External Resource](https://support.wix.com/en/article/connecting-a-subdomain-to-an-external-resource)
- [Purchase a New Domain](https://support.wix.com/en/article/purchasing-a-domain-from-wix-3133977)