If you want to use a custom domain name for your portal (e.g., www.mycompany.com), TalentLMS lets you map an external domain to TalentLMS.
Here’s how to:
A. Map an external domain to your TalentLMS domain
To use an external domain (e.g., a subdomain of your official business domain) for your TalentLMS portal, follow these steps:
1. Sign in to your TalentLMS account as Administrator and go to Home > Account & Settings.
2. Go to the Domain tab.
3. Click Set external domain mapping.
4. In the Domain Map field, type your custom domain name (e.g., lms.mybusiness.com).
Your custom domain is activated immediately, but for the mapping to be effective you have to add the right CNAME to your domain’s DNS records.
|Note: A CNAME (i.e., Canonical Name) record is an entry in the Domain Name System (DNS) that specifies where users can find a specific URL. The CNAME associates your custom domain with your TalentLMS domain. How you add a CNAME to your DNS records depends on your hosting service (check out these guides for setting up a CNAME with cPanel, GoDaddy, and NameCheap). In any case, you need either administrator access to your domain’s settings or an administrator to map the domain for you.|
5. If you have administrator access, go to your hosting service’s admin dashboard, find the DNS editor and add a new CNAME record.
- In the NAME field, type the domain name you want to map (e.g., lms.mybusiness.com).
- In the DATA field, type the domain of your TalentLMS portal (e.g., mysite.talentlms.com).
|Note: Depending on your DNS hosting provider, you may have to type lms instead of lms.mybusiness.com in the NAME field.|
Now, let’s see what happens in some special cases!
B. Set up mapped domains for branches
When you map a custom domain to TalentLMS, each branch assigned with a TalentLMS subdomain (e.g., abranch-mynewsite.talentlms.com) is automatically mapped to a subdomain of the main mapped domain (e.g., abranch.lms.mybusiness.com).
For the mapping to be effective, you have to go back to your hosting service’s DNS editor and create an additional CNAME to map *.lms.mybusiness.com to your TalentLMS domain:
CNAME lms.mybusiness.com > mysite.talentlms.com
CNAME *.lms.mybusiness.com > mysite.talentlms.com
|Note: When your custom domain is implied in the DNS editor, your mapping looks like this:|
CNAME @ > mysite.talentlms.com
CNAME * > mysite.talentlms.com
C. Map a root domain
When your DNS service doesn't allow you to create a CNAME for your custom domain (this is typical for root domains like “mybusiness.com”), you need to create A entries instead and point them to the correct TalentLMS IP addresses. Then, your mapping looks like this:
A mybusiness.com > 22.214.171.124
A mybusiness.com > 126.96.36.199
CNAME *.mybusiness.com > mysite.talentlms.com
|Note: The TalentLMS IP addresses could change at any point in the future. We strongly recommend that you always use CNAME records to map a subdomain (e.g., lms.mybusiness.com) to TalentLMS.|
You did it!
You’re ready to use your own custom domain for your portal and branches.
- Some DNS providers do not permit the creation of wildcard DNS entries (i.e., [*].example.com). In that case, you have to create individual DNS entries for each branch. In the example given, instead of [*].lms.mybusiness.com you have to use a separate DNS entry for abranch.lms.mybusiness.com.
- Whenever TalentLMS cannot match a URL to the respective sub-branch, it redirects users to the “www” domain. For example, if a user tries to access abranch.lms.mybusiness.com and there is no branch named “abranch”, they are redirected to www.lms.mybusiness.com.
- A common issue when typing www.mybusiness.com instead of mybusiness.com (without the “www”) in the Domain map field on the Home > Account & Settings > Domain page is that you cannot map your branches properly. In that case, the mapping needs to be done in the sub-level (i.e., [*].www.mybusiness.com).
We strongly recommend that you never type www.mybusiness.com in the Domain map field. Always use mybusiness.com. Also, if it's your root domain, always create a CNAME in your DNS editor for users to access your portal through www.mybusiness.com:
CNAME www.mybusiness.com > mybusiness.com
On the rare occasion that you decide to name a branch “www”, the www.mybusiness.com URL would take your users to the branch homepage instead of your main domain (mybusiness.com).
- When you want to host a different site on your “www” domain, it’s a good idea to use second-level subdomains to host branches. For example, www.mybusiness.com can point to your main site; lms.mybusiness.com can point to your main TalentLMS domain and branches can be mapped as abranch.lms.mybusiness.com.