How to create a subdomain in HostGator
A subdomain gives you a separate web address under your main domain without another hosting account. If your site is yourbusiness.com.au, a subdomain might be blog.yourbusiness.com.au or portal.yourbusiness.com.au. Creating a subdomain in HostGator normally uses your existing shared hosting plan and the account’s cPanel interface.
A subdomain is a child domain, not a separate top-level registration. It can have its own homepage, document root and DNS host entry while sharing the parent domain’s hosting resources and billing. This makes it useful for a blog, staging copy, client portal or temporary campaign, so you do not need another website when one account will do.
You need an active HostGator hosting service and a domain whose DNS is managed for that account. The domain itself does not always have to be registered with HostGator, but its nameservers must direct web traffic to the correct server. Check existing email before changing nameservers or DNS records.
Plan the name, purpose and folder before opening cPanel. Those choices affect security, publishing and later updates. A short address is easier to share, while a specific name gives visitors an immediate clue about what they will find. Careful preparation also avoids clashes with files you already have.
Choose the purpose and keep the name simple
Start by choosing one job for the address. A separate section of a shared hosting account is useful when the content has a different audience, lifecycle or access requirement from the main homepage, but it still needs a clear identity and a defined owner.
Common uses for a subdomain include:
- A blog such as
blog.yourbusiness.com.aufor articles away from the main homepage - A staging address such as
staging.yourbusiness.com.aufor testing changes before release - A client portal such as
portal.yourbusiness.com.aufor a project or customer group - A short campaign address that keeps temporary material out of the core site navigation
The name should be easy to read aloud and difficult to confuse with another address. Use a folder structure that mirrors the hostname so an editor can find the correct files without guessing.
A useful subdomain name is:
- Short, readable and easy to say over the phone
- Built with letters, numbers and hyphens rather than long keyword strings
- Matched to a clear folder, such as
eventsmatching/public_html/events - Free of temporary labels, staff names or internal project references
For Australian audiences, a clear domain hierarchy often works better than buying another registered domain. A local business can keep its main .com.au site and add a project subdomain while the parent domain remains the trusted destination. Decide whether a login page or client material should be publicly indexed before publishing it.
Prepare the hosting account
Sign in to the HostGator customer area and confirm that the hosting plan is active. Its shortcuts provide access to cPanel, webmail, billing and invoices, domain purchases or transfers, video tutorials, the knowledge base, ticket support and the online forums. Use these resources when your dashboard uses a different layout or a domain has not yet reached HostGator’s servers.
Open domain management and check the nameservers and current DNS records. The parent domain may have an A record pointing to a shared HostGator server, plus records for mail and other services. Do not delete or replace those entries simply to create a subdomain; changing nameservers can interrupt existing email and previously configured addresses.
Choose where the new content will live. Most shared-hosting sites keep files under public_html, and events.yourbusiness.com.au can have /public_html/events as its document root. The host entry should point to that folder, not to an unrelated website or an empty home directory.
A subdomain can isolate a distinct content stream from the main site. A free spin activation guide is the sort of standalone campaign page that might warrant its own short address, while the core domain keeps its established navigation. That separation does not replace checking the legal rules for the content.
Create the subdomain in cPanel
Log in to cPanel from the HostGator customer area and locate Domains. The icon may sit in a group labelled Domains or Email, depending on the account theme. cPanel manages your hosting account; webmail is a separate destination for email, so it helps to know which service you are changing.
Open Subdomains and choose the parent domain from the drop-down menu. Enter the short label, such as events, rather than the full address when the form adds the suffix automatically. The preview should show events.yourbusiness.com.au. Typing the complete hostname into a box that expects only a label can duplicate the parent domain.
Review the document root. cPanel normally proposes a folder such as /public_html/events and a matching home directory. Keep those defaults when they match your planned files, and remove any inherited path pointing to another site’s folder. This directory is the actual web content served for the new hostname.
Select Create, then allow cPanel to save the virtual host and DNS configuration. Some versions use Domains followed by Create a New Domain instead. There, enter the complete hostname, choose an appropriate document root, and use the shared document-root option only when you deliberately want the parent site’s files. Save and confirm the new entry in the Domains list.
Check DNS and secure the address
DNS changes can appear instantly or take time to propagate across Australian networks and different providers. HostGator normally adds the host record automatically when cPanel creates the subdomain. Avoid adding a duplicate A record for the same hostname unless support asks you to; conflicting entries can send visitors to the wrong server.
Once the address resolves, secure it with HTTPS. Check whether HostGator’s SSL provisioning covers the new hostname, or install a certificate through cPanel’s SSL/TLS tools. Test the secure version rather than assuming the certificate has issued, and confirm that automatic renewal is enabled where that feature is available.
Check email separately. A new web subdomain normally does not create a mailbox, so existing addresses at your main domain continue to work unless you changed their records. Use the Email Routing or Mail Accounts area only when you intend to create a new mail host; web hosting and webmail configuration are related but not interchangeable.
Match the site to Australian expectations
Give the address purposeful content and a clear access policy. A staging copy can be protected with a strong password, while a public campaign should avoid exposing private files. Before launch, combine HostGator’s own documentation with a broader online safety resource to check your hosting and security habits.
Australian customers often recognise .com.au as a familiar local signal, while a newer .au domain can suit a different brand. Check the registry’s eligibility rules before choosing or transferring. For teams in Sydney, Melbourne, Brisbane or Perth, a regional or campaign subdomain can organise useful local material without creating several unrelated domains.
Australian English uses forms such as “organise” and “authorised”, and casual workplace talk may call a quick test a “no worries, give it a go” exercise. Privacy work is still essential: if the subdomain collects names, email addresses or other personal information, consider the Privacy Act 1988 and the Australian Privacy Principles, collect only what you need, restrict access and explain how the information is used.
Launch, test and maintain the address
Publish the files through cPanel’s File Manager or an FTP client, and include a proper index.html or index.php in the chosen document root. Open the new address in a private browser window and check the desktop and mobile layouts. A HostGator placeholder or inherited homepage means the content path still needs attention.
Record the hostname, document root, responsible person and renewal date in your hosting notes. If something fails, check the DNS and SSL steps before opening a support ticket, then include the exact address and error message. This saves time for the customer support team and prevents changes being made in the wrong account.
A documented purpose, correct document root, confirmed DNS and active HTTPS are the practical foundation for a subdomain that stays easy to manage as the site grows.