Search

Home

Release Notes

User Docs

How to Point Your Custom Domain to BettrData Using Cloudflare

đź’ˇ

This guide shows you how to point a custom subdomain (like data.yourdomain.com) to BettrData using Cloudflare.

You don’t need to touch your website or email. We’ll only add one DNS record.

1. What You’ll Need

Before you start, make sure you have:

  • Access to your domain registrar
  • (where you bought your domain – e.g., GoDaddy, Namecheap, Google Domains, etc.)

  • A free Cloudflare account
  • The subdomain you want to use, for example:
    • data.yourdomain.com
  • The BettrData host we’ll give you, for example:
    • <environment>.bettrdata.io
If you’re missing the BettrData host value, ask your BettrData contact before continuing.

2. Create or Log Into Your Cloudflare Account

  1. Go to cloudflare.com
  2. Click Sign Up (or Log In if you already have an account).
  3. Complete the sign-up process and log in to your dashboard.

3. Add Your Domain to Cloudflare

In this example, we’ll use yourdomain.com.

Replace this with your own domain (e.g., yourdomain.com).

  1. In the Cloudflare dashboard, click Add a site.
  2. Enter your domain (for example: yourdomain.com, not www.yourdomain.com).
  3. Click Add site.
  4. Choose the Free plan unless you know you need something else.
  5. Cloudflare will scan your existing DNS records.
    • Click Continue when it’s done.

You’ll now see a list of existing DNS records (A, CNAME, MX, etc.). Leave those as-is for now.

4. Change Your Nameservers to Cloudflare

Cloudflare will show you two nameservers, something like:

  • alice.ns.cloudflare.com
  • bob.ns.cloudflare.com
  1. Log in to your domain registrar (where you bought the domain).
  2. Find the section called Nameservers or DNS Management.
  3. Change the nameservers to the two Cloudflare nameservers shown.
  4. Save your changes.
This step does not break your site or email if Cloudflare copied your existing DNS records correctly (which it normally does).

DNS changes can take anywhere from a few minutes up to a couple of hours to fully apply, but you can set up the rest now.

5. Add the CNAME Record for Your Data Subdomain

Now we’ll point your custom subdomain (e.g., data.yourdomain.com) to BettrData.

  1. In the Cloudflare dashboard, select your domain (e.g., yourdomain.com).
  2. Go to the DNS tab.
  3. Click Add record.
  4. Fill in the form:
    • Type: CNAME
    • Name:
      • Enter the subdomain part only, e.g.:
        • data (for data.yourdomain.com)
    • Target (or Content):
      • Enter the host provided by BettrData, e.g.:
        • <environment>.bettrdata.io
    • Proxy status:
      • Make sure this is Proxied (orange cloud icon ON).
  5. Click Save.

You should now see a DNS record like this:

Type
Name
Target
Proxy
CNAME
data
<environment>.bettrdata.io
Proxied (orange)

6. Set the SSL/TLS Mode

Now we’ll make sure SSL is set correctly so your users see a secure lock icon in their browser.

  1. In Cloudflare, go to the SSL/TLS tab.
  2. Under Overview, set SSL/TLS encryption mode to:
    • Full (strict) if available
    • If not, choose Full
Do not use Flexible – it can cause redirect or certificate issues.

7. Turn On Helpful HTTPS Settings

Still in the SSL/TLS section:

  1. Go to Edge Certificates.
  2. Turn ON:
    • Always Use HTTPS
    • Automatic HTTPS Rewrites

This ensures users are always redirected to the secure https:// version of your site.

Cloudflare will automatically issue an SSL certificate for your subdomain (for example, data.yourdomain.com). This usually happens quickly.

8. Wait for DNS & SSL to Propagate

Most of the time this only takes a few minutes, but in some cases it can take up to an hour.

You don’t need to do anything during this step.

9. Test Your New Subdomain

In your browser, go to:

  • https://data.yourdomain.com (replace with your actual subdomain)

Check for:

  • The page loads without errors
  • The address bar shows a padlock icon (connection is secure)
  • The content shown matches the BettrData application/page you expect

If everything looks good, you’re done.

10. If Something Doesn’t Work

Here are the most common issues and how to check them:

1. “Site can’t be reached” or DNS error

  • Make sure the CNAME record exists in Cloudflare.
  • Confirm Proxy status is Proxied (orange cloud).
  • Confirm your domain’s nameservers have been changed to Cloudflare at your registrar.

2. SSL / certificate error

  • In Cloudflare → SSL/TLS:
    • Make sure SSL mode is set to Full or Full (strict) (not Flexible).
    • Check that Always Use HTTPS is ON.
  • Wait 10–15 minutes for Cloudflare to finish issuing the certificate, then try again.

3. Wrong site or old content

  • Make sure the Target of your CNAME record matches exactly the value provided by BettrData (no typos).
  • Clear your browser cache or try an incognito window.

If you’re stuck, grab a screenshot of:

  • Your Cloudflare DNS records page
  • The browser error message

…and send it to your BettrData contact. We can usually spot what’s wrong very quickly.

Quick Summary

  • You add your domain to Cloudflare.
  • You change your nameservers at your registrar to Cloudflare’s.
  • You create a CNAME record like data.yourdomain.com → <environment>.bettrdata.io and keep it Proxied.
  • Cloudflare handles the SSL certificate and secure connection for your custom subdomain.

Once this is done, your users can access BettrData via your own branded URL.