In this article, you will find more information on how to connect your own purchased custom domain at the subdomain level, e.g., www.yourschool.com, or naked domain, with your LearnWorlds school using Cloudflare.
Create a CNAME Record in CloudFlare
1. Log in to your CloudFlare account and click Select Website.
2. Select the domain that you would like to use for your school.
3. Click on DNS on your dashboard.
4. In the DNS Records section, in Type, select CNAME.
5. In Name, enter the subdomain you wish, e.g. www (or courses, or academy, or anything similar). A subdomain precedes your main domain name. For example in www.yourschool.com, www is the subdomain.
6. In Target, enter your LearnWorlds school URL (e.g. yourschool.learnworlds.com or yourschool.mylearnworlds.com, or yourschool.getlearnwordls.com).
7. In TTL, select Auto.
8. Click the Cloudflare cloud and arrow icon to deactivate that Cloudflare CDN to DNS only.
9. Hit Save.
- Make sure to replace yourschool.learnworlds.com with your LearnWolrds school URL.
- Do not include the https:// before your LearnWorlds URL or the / after.
Check if the CNAME Record is Successfully Added
1. Go to Google Admin Toolbox.
2. Insert your domain (without https:// or / at the end). For example, www.yourschool.com or yourschool.com.
3. If the CNAME record is correct, the Learnworlds URL will appear in Target.
Create a Naked domain in CloudFlare
1. Log in to your CloudFlare account and click Select Website.
2. Select the domain that you would like to use for your school.
3. Click on DNS on your dashboard.
4. In the DNS Records section, in Type, select A record.
5. In Name enter @. You need to create 3 new A records with the following values/IP addresses:
- 104.22.60.249
- 104.22.61.249
- 172.67.36.150
Another way around this, when you want to use your naked domain, (example.com) would be to connect it through one CNAME. It will have @ at name and your Learnworlds domain under Target.
You can check more details about the naked domain here.
Check if the A Records are Successfully Added
1. Go to Google Admin Toolbox.
2. Insert your domain (without https:// or / at the end). For example, www.{yourschool}.com or {yourschool}.com.
3. If the A records are correct, the respective records will appear in Target.
Request the Domain's Change in your School Settings
1. Navigate to Settings → School Settings → Site email & domain.
2. Type the subdomain you created.
3. Click on Change Domain.
4. A pop-up message will appear confirming that your domain will be ready soon.
Notes:
- Changing the Proxy status of your record to DNS only, as outlined in step 8, is crucial. Without this adjustment, the CNAME record may not be recognized as correct for finalization.
- Make sure to select Full SSL and not Full (strict). Check this article for more information.
- You can have up to two secondary domains, including the naked domain (domains that redirect to your primary domain), apart from the LearnWorlds default domain.
- You can change the primary domain to a different custom domain, as long as the records remain correct.
- You cannot delete the default LearnWorlds URL.