Docs
www and subdomains
Last reviewed
example.com and www.example.com are one domain in Prebaked: you add, verify and pay for it once, and one token works for both. Every other subdomain is a separate domain.
What is one domain
| You add | Covers | Counts as |
|---|---|---|
example.com or www.example.com |
example.com and www.example.com |
1 domain |
example.co.uk |
example.co.uk and www.example.co.uk |
1 domain |
app.example.com |
only app.example.com |
1 domain |
www.shop.example.com |
only www.shop.example.com, kept as typed |
1 domain |
The apex and www are joined only for a registrable domain, the name you buy from a registrar. A subdomain covers only itself.
Tokens and installs
- One domain token works for both the apex and
www. - The Cloudflare one-click install adds routes for
example.com/*andwww.example.com/*. For a subdomain it adds one route. - If your apex redirects to
www(or the other way around), crawlers follow that redirect as usual. If the two redirect to each other, see redirect loops.
FAQ
Do www and the apex count as two domains?
No. They are one domain, verified once and counted once against your plan.
Does one token work for www and the apex?
Yes. The domain token covers both hosts.
Is app.example.com part of example.com?
No. Every subdomain other than www is a separate domain with its own verification and token.
Does a redirect from example.com to www count as a page?
No. A URL whose last render answered with a redirect is still served, but it does not count toward your page limit.