Why is my Magic Pages website using the "www." subdomain?

Jannis
By Jannis, Founder
|

When you set up a custom domain on Magic Pages, you'll notice we recommend using the "www." subdomain (e.g., www.example.com rather than just example.com). While this might seem like a small detail, there's an important technical reason behind this recommendation.

The Short Answer

Most DNS providers cannot create CNAME records on root/apex domains (like example.com). Since Magic Pages requires a CNAME record to connect your domain to our infrastructure, using www.example.com ensures compatibility with virtually any DNS provider.

If you want to use your apex domain (without www), you'll need to use Cloudflare DNS, which is the only provider that supports the required CNAME flattening feature.

Understanding the Technical Background

What's a CNAME Record?

A CNAME (Canonical Name) record is a type of DNS record that aliases one domain name to another. When you set up a custom domain on Magic Pages, you create a CNAME record that points your domain to our servers:

www.example.com  →  CNAME  →  yoursite.mymagic.page

This allows Magic Pages to handle all the complex infrastructure behind the scenes—SSL certificates, caching, load balancing, and more.

The Root Domain Problem

The DNS specification does not allow CNAME records at the zone apex (the root of your domain, like example.com).

Why? Because CNAME records cannot coexist with other record types, and root domains typically need other records (like MX records for email, or TXT records for verification). This is a fundamental limitation built into how DNS works, not something any individual provider chose.

This means if you try to add a CNAME record for example.com (without www) at most DNS providers, you'll either:

  • Get an error message
  • Have the record rejected
  • Break other DNS functionality like email

The www Workaround

Subdomains like www.example.com don't have this limitation. You can freely add CNAME records to any subdomain, which is why the www setup works with every DNS provider.

What If I Want to Use My Apex Domain?

If you prefer example.com over www.example.com, you have one option: use Cloudflare DNS.

Why Cloudflare?

Cloudflare offers a feature called CNAME flattening that works around the DNS specification limitation. This is how it works:

  1. You create a CNAME record for your apex domain in Cloudflare
  2. When someone looks up your domain, Cloudflare resolves the CNAME chain internally
  3. Cloudflare returns the final IP address instead of the CNAME record
  4. The visitor's browser connects directly, and everything works seamlessly

This happens automatically. You just add the CNAME record like normal, and Cloudflare handles the rest.

Note: Magic Pages only supports apex domain setups with Cloudflare DNS. We do not support A record configurations, as these point to specific IP addresses that may change and don't integrate properly with our infrastructure.

How to Set Up Cloudflare DNS

  1. Create a free Cloudflare account at cloudflare.com
  2. Add your domain to Cloudflare
  3. Update your domain's nameservers at your registrar to point to Cloudflare
  4. Once DNS is active, add your CNAME records in the Cloudflare dashboard
  5. Return to Magic Pages and activate your domain

Cloudflare will automatically detect the apex domain setup and apply CNAME flattening.

Does www Affect SEO?

No. Search engines treat www.example.com and example.com identically. What matters is consistency. Pick one and stick with it. Magic Pages automatically handles redirects to ensure all traffic goes to your chosen version, which is exactly what search engines recommend.

Still have questions?

We're here to help and want to make sure you get the most out of your Ghost site. Reach out directly and we'll get back to you as soon as possible.

Websites powered by Magic Pages

From personal blogs to growing businesses — published with Ghost®, hosted with care.

Loading showcase sites...

Start Your 14-Day Free Trial

No credit card required