Skip to main content

Cloudflare DNS

If your domain is hosted on Cloudflare, follow this guide. The thing that trips people up most on Cloudflare is the proxy status: the root domain and www are set up differently.

Step 1: Copy the AllinCMS CNAME target​

First add the domain in the AllinCMS admin and copy the CNAME target the system generates.

AllinCMS domains page - shows the CNAME target record and copy button, used to paste into Cloudflare DNS

Step 2: Add a root A record​

In Cloudflare, open your domain, go to DNS -> Records, and click Add record.

Fill in the root record like this:

FieldValue
TypeA
Name@
IPv4 address8.8.8.8
Proxy statusProxied
TTLAuto

This A record exists mainly to redirect the root domain to www later. Don't treat it as AllinCMS's real server address.

Cloudflare add A record - the DNS form has type A, name @, IPv4 8.8.8.8, with proxy status on

Step 3: Add the www CNAME record​

Add a CNAME next:

FieldValue
TypeCNAME
Namewww
TargetPaste the CNAME target copied from AllinCMS
Proxy statusDNS only (proxy off)
TTLAuto

Keep proxy off for www so resolution points straight at the target AllinCMS provides.

Cloudflare CNAME target example - record type CNAME, name www, target set to the value copied from the AllinCMS admin

Cloudflare DNS record list - the root A record and www CNAME record both present, completing AllinCMS domain resolution

Step 4: Redirect the root domain to www​

If you want visitors hitting allincms.com to land on www.allincms.com, create a page rule or redirect rule in Cloudflare.

Example:

URL: allincms.com/*
Setting: Forwarding URL
Status: 301 Permanent Redirect
Target: https://www.allincms.com/$1

Replace allincms.com with your real domain.

Cloudflare page rules entry - create a page rule, used to redirect the root domain to the www domain

Cloudflare 301 redirect setup - the URL matches the root domain and forwards to the https www domain, unifying the site entry point

Step 5: Confirm the binding in AllinCMS​

On Cloudflare, the AllinCMS admin usually just needs you to add and select www as the primary domain. Once the records are in, go back and click refresh to verify.

If it reports an SSL failure, wait ten-odd minutes and refresh again. Both DNS and certificates can lag right after binding.

AllinCMS Cloudflare domain verification - select www as the primary domain and refresh, used to confirm SSL and resolution status