Apex domains
Published
Updated
🫚
Naked, bare, root, no prefix.
An apex domain, also called naked or root domain, has no subdomain, like fortrabbit.com. fortrabbit does not route apex domains to environments directly: the forwarding service redirects them to their www subdomain.
Apex routing at fortrabbit
Apex domains can not be routed to environments directly. Use a www domain: the www forwarding service will redirect all requests.
No CNAME for apex domains
The DNS standard allows no other records next to a CNAME, so a CNAME on the apex would break its MX records and with them e-mail like info@example.com. Some DNS providers offer ANAME or ALIAS records to work around this.
No A record routing to environments
A host name can point somewhere else at any time, an IP address cannot. fortrabbit routes domains by host name, so environments can move during scaling or an incident, such as a DDoS attack, without DNS changes on the customer side.
Arguments
An apex domain looks cleaner, but it does not fit routing by host name. Large sites such as Google serve from www., and Safari and Chrome hide the prefix in the address bar. Moving from the apex to www. does not hurt search rankings when the apex forwards every request, deep links included, with a 301. People can keep using the apex domain on business cards and in posts.