Custom domains for sites

Serve a Horizon site from a domain you own. Connect the domain, add the DNS record by hand or with Cloudflare in one click, follow the domain through to live, and fix or remove a domain that fails.

A site starts on its Horizon address. This page shows how an owner or admin serves it from a domain your organization owns, such as www.yourbusiness.com, over HTTPS.

Before you start

  • Your role. Only an owner or admin can connect, set up or disconnect a custom domain. Everyone else sees the Custom domain card with its controls turned off and the note “Only an owner or admin can connect or disconnect a custom domain.”
  • A domain you own, and access to its DNS. You add one DNS record at your DNS provider. If the domain’s DNS is on Cloudflare, Horizon can add that record for you.
  • A site that isn’t archived. An archived site has no Custom domain card. Restore it first (see Sites).

Connect a domain

  1. Go to Marketing > Sites and open the site.
  2. In the Custom domain card, type the name visitors will use in Domain, for example www.yourbusiness.com. Leave out https:// and any trailing slash.
  3. Select Connect domain.

The card then shows the DNS record to add.

www or the root domain. Both work. A root domain such as yourbusiness.com needs a DNS provider that can flatten a CNAME at the root, a feature also called ALIAS or ANAME. Cloudflare does it automatically. When you type a root domain, the card says so; if your provider can’t flatten, use www.yourbusiness.com instead.

If the domain is already connected to a Horizon site, the card says “That domain is already connected to a Horizon site. If it’s one of yours, disconnect it there first — otherwise contact support to release it.”

Add the DNS record

The card lists one record, with a copy button beside each value:

FieldWhat to enter
TypeCNAME. At a root domain, choose ALIAS or ANAME if your provider offers one, with the same value. Cloudflare takes CNAME and flattens it
NameThe domain you connected. Many DNS editors want only the short part, such as www, and the card tells you which to type when it can tell
ValueThe target the card shows. Copy it exactly
TTLAutomatic, or 3600

Create the record at your DNS provider. When the domain’s nameservers belong to Squarespace, Wix or GoDaddy, the card adds steps for that provider. It also warns you when it can see a record that would get in the way:

  • Your record is at the wrong name. Your DNS host added your domain to the name a second time. Change the record’s name to the short form the card shows.
  • The domain still has the provider’s default record. Remove it so your record can take its place. On Squarespace, delete the Squarespace Defaults block.
  • That name points somewhere else. Change the existing record’s value to the one the card shows.

Add it with Cloudflare

When every nameserver for the domain is Cloudflare’s, the card shows Your DNS is on Cloudflare with two choices:

  • Add it with Cloudflare. You sign in to Cloudflare and approve access to read your zones and write DNS records. Horizon adds the one CNAME record, then hands the access back. It never changes a record that’s already there.
  • I’ll add the record myself. Shows the record so you can create it by hand.

You come back to the site’s page with the result:

MessageWhat happened
Record added in CloudflareThe record is in place. Horizon picks it up on its next check
Your record was already in placeCloudflare already had the right record, so nothing changed
We didn’t change your DNSThe domain already has a different record in Cloudflare. Remove or edit it there, then create the record shown
We couldn’t find this domain in CloudflareThe Cloudflare account you approved doesn’t hold the domain. Try again with the account that does, or add the record yourself
Cloudflare hasn’t activated this domain yetNothing changed. Try again once Cloudflare shows the domain as Active
Cloudflare access wasn’t approvedYou declined at Cloudflare. Nothing changed
We couldn’t finish the Cloudflare setupNothing changed. Try again, or add the record yourself

Follow the domain to live

Horizon checks the domain on its own, and the site’s page refreshes itself every 15 seconds while the domain is setting up. You can close the page; it shows the current state when you come back.

Card showsSites list Domain columnWhat it means
Waiting for your DNS change to reach usWaiting for your DNS recordHorizon hasn’t seen your record yet. DNS changes usually appear within minutes but can take up to 48 hours
We found your recordConnectingYour record is in place. Nothing more to do at your provider
Issuing your HTTPS certificateIssuing certificateThe certificate is being issued, usually within a few minutes
Your domain is liveCustom domainThe site is served over HTTPS at your domain. The list’s Address column shows the domain

Horizon keeps checking a live domain once a day.

Fix a domain that failed

A failed domain shows Domain needs attention at the top of the site’s page and Needs attention on the Sites list. The card says what went wrong, quotes what the domain and certificate provider reported, and offers Remove and try again:

Card showsWhat to do
We couldn’t verify domainHorizon never saw the record within 48 hours. Check the record against the one shown, then remove the domain and connect it again
That name points somewhere elseA record exists but points elsewhere. The card shows where it points and where it needs to point. Change the record, then remove and reconnect the domain
Your DNS record for domain changedThe domain was live, but its record no longer points to Horizon, so it stopped serving the site. Set the record back to the value shown, then remove and reconnect the domain
The HTTPS certificate couldn’t be issuedYour DNS is fine. Removing the domain and connecting it again starts a fresh certificate request. If it fails a second time, contact support
There’s a problem with domainThe cause isn’t your DNS as far as Horizon can tell. Read the provider’s message first. Removing and reconnecting starts the checks over; if that doesn’t help, contact support

Disconnect a domain

  • A live domain: select Disconnect domain, then Yes, disconnect. The domain stops serving the site straight away, and visitors to that address see an error until you connect it again or point it somewhere else.
  • A domain still setting up: select Remove domain. It is removed without a confirmation.

The DNS record you created stays at your provider. Horizon can’t remove it.

Domains when a site is archived or deleted

  • Archive disconnects every custom domain of the site. Restoring the site does not reconnect them; connect each one again.
  • Delete releases the site’s custom domains as part of removing the site.

In both cases your DNS records stay at your provider.

The card manages one domain per site. If a site has more than one domain connected, the site’s page names the others in a More than one domain is connected note.


Related: Sites | Brand kits