Add a domain
Attach your domain to a site so visitors reach it over HTTPS, and add more hostnames later.
On this page
Before you start
- You can open the site in Managed Websites. Anyone who can open a site can change its domains.
- You can change the domain's DNS records, or its Cloudflare zone is connected to your organisation.
- A site can have up to 10 hostnames.
Attach the site's domain
Open Domains & HTTPS
Go to Managed Websites, choose the site, then Domains & HTTPS under Site settings. Choose the Attach button: on Production it names your domain, and on other environments it reads Attach a domain.
Choose the address visitors land on
On Production, choose the Canonical address: the
wwwaddress or the bare domain. On another environment, enter its Domain, then choose Check DNS.Hostnames you add under Aliases redirect to that address.
Point your DNS at the site
DNS check lists what each hostname's DNS says today. Point each one at the expected address under the list, choose Check again, then Continue.
Confirm
Type the domain to confirm, then choose the Attach button.
The hostnames apply in about a minute and the certificate follows within a few minutes. Hostnames then shows Points at us and Ready for each address.
With the domain's Cloudflare zone connected, tick Point DNS for me at the DNS check and the records are written for you.
Add another hostname
Enter the hostname
In the field under the table, enter the hostname and choose Add hostname. The line under the field gives the address to point its DNS at.
Save
Choose Save changes. The hostname is added as an alias that redirects to the primary, in about a minute.
Remove a hostname or make it primary
Open the … menu on a hostname's row and choose Make primary…, Remove alias… or Check DNS now.
Automate this
Replaces the list of extra domains and sets whether search engines are asked not to index the site.
curl -X PUT https://manage.corefinity.com/api/corestack/sites/1042/domains \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"aliases": [
"www.harbourandfinch.example.com",
"shop.harbourandfinch.example.com"
],
"noindex": false,
"version": 4
}'Your assistant calls corestack_domains_update.
{
"name": "corestack_domains_update",
"arguments": {
"site_id": 4211,
"version": 3,
"aliases": [
"www.example.co.uk",
{
"host": "guns.example.co.uk",
"serve": "storefront",
"store": {
"code": "guns",
"type": "website"
},
"base_url": true
}
],
"noindex": false
}
}