This article shows how to route requests from your custom domain to your Teachable course by creating a CNAME record with Cloudflare.
To use a custom domain for your Teachable course, you must create a CNAME record at the root level. Many domain providers don’t allow you to do this, but with Cloudflare, you can create CNAME records at the root level for free.
Creating a CNAME Record with Cloudflare
To create a CNAME record using Cloudflare, follow these steps:
- Sign up for a free Cloudflare account.
- Type the domain name you want to use for your Teachable school without the www prefix and click Scan DNS Records.
NOTE: You must type your URL without the www because a URL with this prefix is a completely different domain.
- After Cloudflare has scanned your DNS records, click Continue.
- Review your records and click Continue again.
- Select Free Website and click Continue.
- Copy both of the nameservers.
- Now, open a new window and go to your domain registrar. Change your domain’s nameservers by pasting the Cloudflare nameservers in their place.
NOTE: This example uses the domain registrar Namecheap. Where you add the Cloudflare nameservers will look different depending on your domain registrar.
- Return to Cloudflare and click DNS from the top navigation menu.
- Delete the A Record with your domain in it by clicking the x icon.
- Create a CNAME record by selecting CNAME from the menu on the left.
- Type your custom domain inside the Name box and the URL of your teachable school inside the IPv4 address box. Click Add Record.
- Click the gray cloud icon to turn Cloudflare’s status to active for this CNAME record.
NOTE: It often takes 24-48 hours for these changes to fully process.