Your business has one domain, for example yourbusiness.co.ug, but you may need more than one website. Perhaps you want an online shop, a staff portal, a client support centre or a separate site for your Mbarara branch. Instead of buying new domains for each, you can create subdomains such as shop.yourbusiness.co.ug or portal.yourbusiness.co.ug. This guide explains what subdomains are, when to use them, and how to set up subdomains for your business in cPanel and through DNS, with tips on SSL, email and SEO.
What is a subdomain?
A subdomain is a prefix added before your main domain name, separated by a dot. In the address shop.yourbusiness.co.ug:
- yourbusiness.co.ug is your main domain, also called the root or apex domain.
- shop is the subdomain.
Technically, "www" is also a subdomain. Each subdomain can point to its own folder on your hosting account, to a different server, or to an outside service such as a booking platform or help desk tool.
Why businesses use subdomains
Subdomains are useful when you want to run a separate section or application while keeping your brand together. Common examples:
- shop.yourbusiness.co.ug: an online store separate from the main company website.
- portal.yourbusiness.co.ug or staff.yourbusiness.co.ug: an intranet, HR system or internal tools.
- support.yourbusiness.co.ug or help.yourbusiness.co.ug: a knowledge base or ticketing system.
- book.yourbusiness.co.ug: appointment or hotel booking systems.
- learn.yourbusiness.co.ug: an e-learning platform for schools and training centres.
- mbarara.yourbusiness.co.ug: a branch site with its own content.
- staging.yourbusiness.co.ug: a test copy of your website where your developer can try changes before going live.
Subdomain or subfolder?
Before creating a subdomain, decide whether a subfolder would be better. A subfolder looks like yourbusiness.co.ug/shop.
- Choose a subfolder when the content is closely related to your main website and you want it to share the main site's search visibility. A blog is usually best at /blog.
- Choose a subdomain when the section runs on different software, is hosted elsewhere, serves a different audience such as staff, or needs to be technically separate.
Search engines can treat subdomains somewhat separately from the main site, so if SEO for the content matters, a subfolder is often the safer choice. For apps, portals and tools, subdomains are cleaner.
How to create a subdomain in cPanel
If your website is hosted on a cPanel account, such as with Baasa Cloud, creating a subdomain takes about two minutes.
- Log in to cPanel.
- In the Domains section, click Domains. On some older versions, click Subdomains.
- Click Create A New Domain.
- Type the full subdomain, for example shop.yourbusiness.co.ug.
- Untick "Share document root" if you want the subdomain to have its own folder, which is usually the case.
- Confirm the document root folder, for example /shop.yourbusiness.co.ug or /public_html/shop.
- Click Submit.
cPanel creates the folder and the DNS record automatically if your domain uses your hosting's name servers. You can now upload files to that folder or install an application there.
Install WordPress or another app on the subdomain
Use the app installer in cPanel, such as Softaculous or WordPress Toolkit. When asked where to install, choose your new subdomain from the domain list and leave the directory field empty so it installs at the root of the subdomain.
How to point a subdomain to an outside service
Many tools, such as help desk platforms, booking systems, email marketing landing pages and store builders, ask you to connect a custom subdomain. They usually give you a DNS record to add.
- Log in to wherever your DNS is managed. This could be cPanel's Zone Editor, your registrar's dashboard or a service like Cloudflare.
- Find the DNS zone for your main domain.
- Add the record the service provides. Usually it is one of:
- CNAME record: name "support", value something like yourcompany.helpdesktool.com.
- A record: name "book", value an IP address.
- Save the record.
- Go back to the service and click verify or connect.
DNS changes can take anything from a few minutes to several hours to spread across the internet. If it does not work immediately, give it some time before changing things again.
Secure your subdomain with SSL
Every subdomain needs its own valid SSL certificate so that visitors see the padlock and their information is protected.
- On cPanel hosting, AutoSSL usually issues a free certificate for new subdomains automatically. Check SSL/TLS Status in cPanel and run AutoSSL if needed.
- Outside services normally provide SSL once your DNS record is verified.
- If you have many subdomains, a wildcard certificate covering *.yourbusiness.co.ug can be convenient.
Subdomains and email
A subdomain does not automatically get its own email. Your business email addresses usually stay on the main domain, like info@yourbusiness.co.ug, and that is best for most businesses. If you send marketing emails through an email marketing service, some recommend a sending subdomain like mail.yourbusiness.co.ug to protect your main domain's reputation. Follow their DNS instructions carefully for SPF, DKIM and DMARC records.
Be careful not to delete or overwrite existing MX records when editing DNS, or your email may stop working.
Naming tips for subdomains
- Keep them short and obvious: shop, help, book, portal, learn.
- Use lowercase letters only and avoid underscores.
- Avoid names that look like phishing, such as login or secure, unless there is a clear purpose.
- Keep a list of all subdomains, what they are for and who manages them.
Security and housekeeping
Each subdomain is another door into your business online. Look after them.
- Keep any software on subdomains updated, including forgotten test sites.
- Password protect staging and internal subdomains.
- Delete DNS records for services you no longer use. A record pointing to a cancelled external service can sometimes be taken over by someone else, a risk known as subdomain takeover.
- Include subdomains in your backup plan. Baasa Cloud's daily backups cover all folders in your hosting account, including subdomain sites.
Frequently asked questions
Do subdomains cost extra?
Usually not. Most hosting plans allow you to create subdomains under your existing domain. Check your plan's limits.
How many subdomains can I create?
Technically many. The practical limit depends on your hosting plan and the resources each site uses.
Will a subdomain affect my main website's SEO?
Not negatively in normal use. However, content on a subdomain may not fully share the main site's ranking strength, so use subfolders for content you want to rank as part of the main site.
Why does my new subdomain show an error?
Common causes include DNS still propagating, an empty folder, or a missing SSL certificate. Wait a little, upload content and run AutoSSL.
Conclusion
Subdomains are a simple, low cost way to organise different parts of your business online. Decide whether a subdomain or a subfolder suits your purpose, create it in cPanel or add a DNS record for outside services, secure it with SSL and keep track of every subdomain you create. If you need help, the Baasa Cloud support team can set up subdomains, DNS and SSL for you.