How to add a subdomain in cPanel

A subdomain gives an existing website a separate address without requiring another domain registration. If your HostGator site is www.example.com.au, you could use shop.example.com.au for an online shop, learn.example.com.au for training material, or staging.example.com.au for a private test build. The parent domain stays the same, while the subdomain gives a particular service its own home. This is useful for Australian small businesses that want a campaign, client portal, or event site without confusing visitors with the main company website.

cPanel is the hosting control panel where website files, domains, email, databases, and security settings are managed. HostGator customers usually open it from the customer account area rather than searching for a separate address. The available controls can include a shortcut to webmail as well, so you can handle site administration and mail from the same account. When you add a subdomain, cPanel normally creates both the address and the folder where its files will live.

The domain must already be connected to the hosting account and resolving to HostGator. A domain bought through another Australian registrar can still work, provided its name servers point to the HostGator account and the domain appears in cPanel. Australian sites often use a .com.au or .au address, and the subdomain should be added beneath whichever exact domain is active; do not assume that a similarly named domain is the same one. Choose a short, lowercase label such as portal or resources, and avoid spaces, full web addresses, or accidental extra dots.

The usual workflow is to sign in, open Domains, choose the subdomain tool, enter the label, review the document root, and save. The wording can differ slightly between cPanel versions, but the essential choices remain the same. This guide explains those choices in detail, including what to check after creation and how to troubleshoot an address that does not load.

Prepare the domain and account

Sign in to HostGator’s customer area and open the cPanel shortcut. The account area usually also contains a webmail login, invoices, payment details, domain purchase or transfer tools, video tutorials, the knowledge base, ticket support, and online forums. After a new signup, find the welcome email and confirm the recorded address; password resets and security notices go there. These checks make it easier to distinguish an account issue from a domain setting.

Check that the domain is attached to the hosting plan and is no longer pending a transfer. In cPanel, open Domains or Domain Information and look for the exact name, including .com.au or .au. If it is missing, compare its name servers with the HostGator account. A domain registered through another Australian registrar can work, but DNS changes must be made at the registrar controlling those records. Allow time for nameserver propagation.

Choose a name that explains the site’s job and is easy to say over the phone. For a Melbourne training provider, learn suits course pages; for a Brisbane retailer, shop is clearer than keywords. Hyphens are valid but easy to mistype, and a label should not imitate support unless it is genuinely an official support service. Before creating several addresses, consult a subdomain management guide to keep names, folders, and future content organised.

Open the subdomain creator

In cPanel, scroll to Domains and select Subdomains. Depending on the interface, the path may read Domains, Subdomains, Create a New Subdomain, or show a Create a New Subdomain button. These are minor variations. Select the parent domain from the drop-down first; this determines whether the new hostname ends in .com.au, .au, or another domain managed by the account.

Enter only the label, such as academy to create academy.example.com.au. Do not type https://, the full domain, a trailing slash, or /courses. cPanel usually displays the completed address so you can check spelling. Use lowercase letters, numbers, or hyphens, and avoid accents or punctuation that visitors may not enter correctly.

The page also shows a document root, the directory used to serve that hostname. A typical path is public_html/academy, although the exact location can vary with the cPanel theme or domain setup. Leave the generated path for a new site; change it only when you know which existing files should be served. Review any DNS, redirection, or sharing choices, keep the defaults unless needed, then select Create or Save.

Create and test the subdomain

After saving, cPanel normally adds the DNS entry and creates the document-root directory. DNS translates the hostname to a server address, so it may not respond immediately. Note the exact address from the confirmation and avoid repeated DNS edits while the change settles. Test later or from another device if a local connection has cached an older result.

Open the new address in a private browser window. A blank page or directory listing usually means the folder has no homepage. In File Manager, enter the document root and check for index.html, index.php, or application files. Upload through File Manager, FTP, or your usual deployment method. Preserve relative paths, since moving files into a new subfolder can break images, stylesheets, and scripts.

Test the address without www, then decide whether a www version should redirect to the preferred hostname. That extra address is not created by every cPanel version. Check forms, email delivery, and database connections after the homepage loads. For HTTPS, wait until DNS resolves before requesting SSL coverage; AutoSSL may issue a certificate only after the hostname is active.

Secure and maintain the new site

Treat the subdomain as a separate security boundary, even when it shares the hosting plan. Before uploading customer files or login details, review HostGator safety guidance and use unique, long passwords for cPanel, the application, and its administrator account. Do not reuse the main-domain password or send it in a ticket. Keep the account email current, enable available two-factor protection, and sign out on shared computers.

Give the web server only the file access it needs. In File Manager, check ownership and permissions after uploads, especially when moving a site from another host. Remove installers, database backups, configuration exports, and test pages containing credentials. Update the CMS, plugins, and themes regularly; an old application on a quiet subdomain can still send harmful mail or compromise the parent domain.

Australian privacy and marketing rules apply to any customer data collected. A booking page, member portal, or shop may need clear notices and a process aligned with the Australian Privacy Principles; marketing email should also be checked against the Spam Act. Store only necessary information and restrict staff access. Australian hosting invoices commonly use Australian dollars and show GST where applicable, so check billing records if renewal work is interrupted.

Troubleshoot common HostGator issues

Start by confirming the correct hostname. Copy the address from cPanel instead of adding another www, hyphen, or domain ending by habit. Compare it with the active domain in Domain Information, check the DNS record, and allow propagation time. Clearing the cache or testing another device can reveal whether the problem is local or server-side.

If DNS works but the wrong site appears, inspect the document root. cPanel may be serving the default public_html index, or two applications may share a path. Confirm the hostname has one intended root, an index file, and no redirect back to the parent domain. If cPanel says the subdomain exists, use Edit to inspect its DNS and folder, or use Delete only after confirming the existing setup is no longer needed.

For hosting, email, invoice, or domain-transfer problems, record the hostname, test time, browser error, and cPanel message before opening a ticket. The knowledge base and video tutorials can answer common questions, tickets can investigate account conflicts, and forums can provide comparison, but never post credentials publicly. Include AEST or AEDT when timing matters and remove customer data from screenshots.

The final check is operational: decide who owns the subdomain, what it serves, and when its certificate, backups, and renewal will be reviewed. A shared account can carry several useful addresses, but clear records prevent an old test site from becoming a liability. Keep a note of its purpose, administrator, document root, and launch date, especially when people in Sydney, Melbourne, and Brisbane share account duties.

Treat the first address as a controlled test rather than an abandoned experiment. Verify its files, permissions, DNS, and HTTPS, then decide whether it needs a redirect or removal. The immediate next step is to create one clearly named test subdomain, such as staging, beneath the active domain in cPanel.