# Use a subdomain or www

Canonical: https://yaya.page/support/articles/domains/use-a-subdomain-or-www
Last updated: 2026-10-29

Default is www plus a forward from the bare domain. Advanced bare-domain setup is only for DNS that can flatten a CNAME at @.

Source: https://yaya.page/support/articles/domains/use-a-subdomain-or-www
Last updated: 2026-10-29

## Pick the name
The default is `www.example.com`. Type `example.com` in yaya and it connects www for you. Every DNS provider can hold a CNAME on www.

The bare domain `example.com` cannot take a plain CNAME. Prefer the www path unless you know your DNS flattens at `@` (Cloudflare DNS-only is the common case).

Pick your provider: [Find where your DNS is managed](/support/articles/domains/find-your-dns-provider).

## Default: connect www and forward the bare domain
1. Open **Website** > **Domain**.
2. Type `example.com` (or `www.example.com`) in **Hostname**. Leave **Use bare domain** off.
3. Click **Connect domain**. yaya shows a CNAME for Host `www`.
4. Add the CNAME at your provider. Host `www`, value from yaya (usually `yayasite.com`).
5. Set a permanent (301) forward from `example.com` to `https://www.example.com`.
6. Click **Check again** in yaya.

**Where the forward lives**
Look for **forwarding**, **URL forwarding**, **domain forward** or **redirect**. Most registrars include it at no cost.

- **Squarespace Domains:** **Website** > **Domain Forwarding Rules**, or the domain's forwarding settings.
- **GoDaddy:** domain **Forwarding** for `@` to `https://www.example.com` (HTTPS on).
- **IONOS:** domain forwarding to `https://www.example.com`.
- **Namecheap:** **Redirect Domain** / URL Redirect for `@`, or keep ALIAS only on the advanced path below.

**Check that both work**
- `https://www.example.com` loads your site.
- `https://example.com` lands on `https://www.example.com`.
- A deeper path like `/pricing` keeps its path after the forward when your provider supports it.

## Advanced: use the bare domain
Only when your DNS can flatten a CNAME at `@` (Cloudflare: grey-cloud / DNS-only CNAME to `yayasite.com`).

1. Type `example.com` and turn on **Use bare domain (advanced)**.
2. Add the TXT record yaya shows first (Host `_cf-custom-hostname`). Wait until ownership is confirmed.
3. Add the ALIAS/ANAME (or DNS-only CNAME) for `@` after ownership is confirmed. Do not add the pointing record before the TXT is verified.

Adding ALIAS first is what blocks ownership on many providers.

## Fix common problems
**My provider has no ALIAS or ANAME.** Stay on the default www + forward path.

**Which name should be primary?** Pick the one you print on cards and share. See [Check domain status and make it primary](/support/articles/domains/check-domain-status-and-ssl).

**yaya treats example.co.uk as a bare domain.** It does. Names like `shop.example.co.uk` are subdomains.
