A subdomain is a useful way to create a separate area of your website without registering a new domain. For example, you might use shop.yourdomain.co.za for an online store, portal.yourdomain.co.za for a customer login area, or blog.yourdomain.co.za for articles and updates.

If your hosting account uses cPanel, you can create a subdomain from the control panel and choose where its files should live on the server. This guide explains how to create a subdomain in cPanel and what to check before using it publicly.

What is a subdomain?

A subdomain is an extension of your main domain. If your main website is yourdomain.co.za, a subdomain could be support.yourdomain.co.za or bookings.yourdomain.co.za. It can point to a separate folder, application, landing page, or service while still using your main brand domain.

When should you use a subdomain?

Subdomains are helpful when a section of your website has a different purpose from the main site. Common examples include:

  • shop.yourdomain.co.za for an online store.
  • app.yourdomain.co.za for a web application or client portal.
  • blog.yourdomain.co.za for articles and guides.
  • support.yourdomain.co.za for helpdesk or knowledgebase content.
  • staging.yourdomain.co.za for testing changes before updating the live website.

If you are planning a new website structure, Host Unique can also help with website design and hosting setup so the technical structure matches your business goals.

Before you create the subdomain

Before logging into cPanel, decide on the subdomain name and what it will be used for. Keep it short, clear, and easy to understand. For example, use shop, portal, support, or booking rather than a long or confusing label.

You should also confirm that your domain is connected to the hosting account and that your DNS is managed correctly. If your domain points somewhere else, the subdomain may need an additional DNS record before it works.

Step 1: Log in to cPanel

Open your cPanel login page and sign in with your hosting username and password. Once you are inside cPanel, you will see the dashboard with sections for domains, email, files, databases, security, and other hosting tools.

Step 2: Open the Domains area

Look for the Domains section in cPanel. Depending on your cPanel version, you may see a dedicated Subdomains tool, or subdomains may be managed from the main Domains screen.

Open the subdomain or domains tool so that you can create a new subdomain for your selected domain.

Step 3: Enter the subdomain name

In the subdomain field, enter only the first part of the address. For example, to create shop.yourdomain.co.za, enter shop. cPanel will combine it with your selected domain to create the full subdomain address.

If your hosting account has more than one domain, make sure you choose the correct domain from the dropdown before continuing.

Step 4: Check the document root

The document root is the folder where the subdomain's website files will be stored. cPanel usually fills this in automatically based on the subdomain name. For example, a subdomain called shop may point to a folder such as public_html/shop.

You can keep the suggested folder for most basic setups. If you are pointing the subdomain to an existing project or a specific application folder, change the document root carefully so it points to the right location.

Step 5: Create the subdomain

Review the subdomain name, selected domain, and document root. When everything is correct, click Create or Submit. cPanel will add the subdomain and prepare the folder for its files.

After the subdomain is created, you can upload website files, install an application, or connect the subdomain to the project it is meant to serve.

Step 6: Test the subdomain

Open the new subdomain in your browser, for example https://shop.yourdomain.co.za. If it does not load immediately, wait a short while and then test again. DNS changes can sometimes take time to update, especially if the domain is managed outside the hosting account.

If the page shows an error, check that the document root contains the correct files and that the domain's DNS records are pointing to the correct hosting server.

Should a subdomain use SSL?

Yes. Any public subdomain should use HTTPS, especially if it handles logins, forms, payments, customer information, or admin access. In cPanel, check the SSL or AutoSSL section to confirm that the subdomain has a valid certificate.

If HTTPS is not working, the subdomain may not be pointing correctly yet, or the SSL certificate may still need to be issued.

Subdomain vs subfolder

A subdomain and a subfolder are not the same thing. A subdomain looks like shop.yourdomain.co.za, while a subfolder looks like yourdomain.co.za/shop. Both can work, but they are used differently.

  • Use a subdomain when the section is separate, such as an app, portal, store, or support area.
  • Use a subfolder when the section is part of the main website, such as a service page, blog category, or landing page.

For SEO-focused website content, a subfolder is often better. For separate systems or applications, a subdomain is often cleaner and easier to manage.

Common mistakes to avoid

  • Creating the subdomain on the wrong domain in cPanel.
  • Pointing the document root to the wrong folder.
  • Forgetting to add or check DNS records when DNS is managed elsewhere.
  • Launching the subdomain without HTTPS.
  • Using a subdomain when a normal page or subfolder would be better for SEO.

Conclusion

Creating a subdomain in cPanel is a simple process: log in, open the Domains or Subdomains area, enter the subdomain name, confirm the document root, and create it. Once it is active, test it in your browser and make sure HTTPS is working.

If you need help planning domains, hosting, SSL, or a new website structure, Host Unique can assist with reliable hosting, domain setup, and practical support for South African businesses.