Skip to content

Custom Domain

Every Typeroll site gets a free subdomain at yoursite.sites.typeroll.com. To use your own domain (e.g. acme.se), connect it in the portal and update your DNS.

  1. Open the portal

    Go to app.typeroll.com → your site → Settings → Domain.

  2. Enter your domain

    Type your domain (e.g. acme.se or www.acme.se) and click Connect.

    The portal will show you the DNS records to add.

  3. Add DNS records

    Log in to your DNS provider (Cloudflare, GoDaddy, Namecheap, etc.) and add the records shown. Typically:

    TypeNameValue
    CNAME@ or wwwyour-project.pages.dev

    If your DNS provider doesn’t support CNAME on the root (@), use an ANAME/ALIAS record instead, or point to a www subdomain with a redirect.

  4. Wait for propagation

    DNS changes can take a few minutes to a few hours. The portal shows a green checkmark when the domain is verified and SSL is provisioned.

  5. Redeploy

    Trigger a new deploy so the canonical_url and OG URLs in the built HTML use your custom domain:

    Deploy the site
SetupExampleNotes
Root domainacme.seRequires ANAME/ALIAS or Cloudflare Proxy
www subdomainwww.acme.seCNAME works everywhere
Subdomainstudio.acme.seCNAME works everywhere

For root domains with a registrar that doesn’t support ANAME/ALIAS, the easiest solution is to use www as the canonical domain and redirect acme.sewww.acme.se at the DNS level.

Some sites — especially those migrated from WordPress — use www.acme.se as their canonical URL rather than the bare apex domain. Here’s how to set that up correctly.

Add both records so both forms of the domain resolve:

TypeNameTargetProxy
CNAMEwwwyour-project.pages.devDNS only
CNAME@your-project.pages.devDNS only

If your registrar doesn’t support CNAME on @, use an ANAME/ALIAS record there instead.

In Cloudflare Pages → your project → Custom domains, add both:

  • www.acme.se (primary)
  • acme.se (apex)

Cloudflare Pages’ _redirects file only handles path-based redirects — it can’t redirect between domains. Use a Cloudflare Redirect Rule instead:

  1. Cloudflare Dashboard → your domain → Rules → Redirect Rules → Create rule
  2. Set the condition: Hostname equals acme.se
  3. Set the action: Redirect to https://www.acme.se${uri.path} — status 301

This ensures visitors who land on acme.se are always sent to www.acme.se.

What you don’t need to change in Typeroll

Section titled “What you don’t need to change in Typeroll”

The _redirects file Typeroll generates handles path redirects only (old slugs → new slugs). The apex → www redirect lives entirely in Cloudflare and doesn’t need any Typeroll configuration.

SSL certificates are provisioned automatically by Cloudflare Pages. No configuration needed.