Domains, DNS and HTTPS
Nothing points your domain at us for you
Creating a site does not create a single DNS record. The site's Overview tab shows the two records to set. Until you set the records below yourself, your hostname resolves wherever it resolved before, the site serves nobody, and no certificate can be issued.
This is the step people miss.
Which hostnames a site may serve
A hostname is accepted only if it is already known to your account, as one of these:
- A domain on your account. It becomes a primary domain of the site.
- A subdomain of a zone your account owns. It becomes an additional hostname.
shop.example.comworks as soon asexample.comis on your account.
Anything else is refused when you save. The dialog that creates a site says:
domain is not registered to this account and is not a subdomain of a zone you own: shop.example.netOn an existing site, the Additional hostnames card says:
shop.example.net: This hostname is not under a domain that belongs to your account.Add the domain to your account first, or transfer it in. There is no way to attach a hostname whose parent zone we do not know.
When you create a site, every hostname goes into the one Domains field, and each is filed as a primary domain or an additional hostname by the rule above. A subdomain refused with the message above means its parent zone is not on your account.
A domain already serving another hosting site is refused too:
domain already attached to another hosting siteA site must have at least one hostname of either kind. The create dialog refuses an empty Domains field:
At least one domain is requiredThe records to set
Point every hostname the site serves at both addresses:
| Type | Value |
|---|---|
A | 91.98.6.3 |
AAAA | 2a01:4f8:1c1f:7bfa::1 |
The site's Overview tab shows the same two records under DNS records; click one to copy its value.
Set both. IPv6-only visitors get nothing without the AAAA record, and an AAAA pointing somewhere else is worse than none at all, because clients that prefer IPv6 will use it.
If the domain's DNS is managed here, add the records in the domain's zone editor in the portal. If it is hosted elsewhere, add them at that provider.
Do not use a CNAME for the bare domain
example.com needs A and AAAA records. A CNAME at the zone apex is not valid DNS and most providers refuse it. Use the addresses above.
www is not automatic
Adding example.com does nothing for www.example.com. You decide which of the two is the real site, and you configure the other one. Both options need the www hostname to have its own A and AAAA records, pointing at the same two addresses.
Option 1, redirect www to the bare domain. This is what most sites want. Add a redirect on the site under Redirects: source www.example.com, target example.com, status 301. Visitors land on one canonical address and search engines see one site.
Option 2, serve both. Add www.example.com under Additional hostnames. Both names then serve the same files, which means duplicate content unless your application canonicalises them itself.
Redirects
A redirect answers one hostname with a 301, 302 or 308 to another, and 301 is the default. It is a hostname-level redirect: the path is preserved, and the redirect always goes to HTTPS.
The rules below apply. A refusal names the hostname and the rule, in the dialog that creates a site or, on an existing site, in a notice titled Failed to save redirects. Nothing from a refused save is applied.
The target must be a hostname the same site already serves. The target list offers only those.
The source may not also be served by the site, and may appear only once. One hostname cannot both serve files and redirect.
textwww.example.com: This redirect source is a hostname the site serves, or it is listed twice.The source must be in a zone your account owns, like any other hostname.
textwww.example.net: This redirect source is not under a domain that belongs to your account.A hostname cannot redirect to itself.
textwww.example.com: A redirect must point to a different hostname that this site already serves.
A hostname cannot be removed from the site while a redirect still points at it. Removing it from Additional hostnames is refused with a notice titled Failed to save hostnames:
shop.example.com: A redirect still points at this hostname. Change or remove the redirect first.Change or remove the redirect and save it, then remove the hostname.
HTTPS
Certificates are issued and renewed for you. There is nothing to upload, nothing to configure and no separate charge, and plain HTTP is permanently redirected to HTTPS for every hostname on the site.
Order matters: DNS first, then the certificate
Issuance validates over HTTP against the hostname itself, so the record has to resolve here before a certificate can be issued. If you create the site and check immediately, the browser shows a certificate warning. That is the expected state, not a fault.
Set the records, wait for them to propagate, and allow up to an hour between the hostname resolving here and HTTPS working.
Move an existing live site in this order, and the visible downtime is the DNS propagation only:
- Create the site and upload the files.
- Lower the TTL on the existing records, a day ahead if you can.
- Point the records here.
- Wait for the certificate, then test.
What's next
- Runtime and PHP settings to choose PHP version and web server
- Troubleshooting if the hostname resolves but serves the wrong thing