The Subdomains function in cPanel lets you create a subdomain — a domain with an extra prefix that operates separately from the original domain. You could make a forum for your site (example.com) with an address of “forum.example.com” — or a blog, a test site, or any number of other variants. Read below for instructions on how to make a subdomain in cPanel.
- How to Create a Subdomain in cPanel
- Where Do Subdomain Files Go?
How to Create a Subdomain in cPanel
- Log into your cPanel.
- Go to the Domains section and click on Subdomains.
- Type in the name of the subdomain and select the domain to create it under. It will automatically create a folder for the subdomain in your public_html folder.
- Click the Create button to add a subdomain in cPanel.
How to Setup a Subdomain on Your Nameservers
If your domain is pointed to InMotion Hosting’s nameservers, you don’t need to manually update your DNS Records when you create a subdomain. The cPanel Zone Editor will automatically create an “a record” for the subdomain with an appropriate IP address. After propagation time, anyone else who types in your subdomain online should reach your new site.
It can take up to 24 hours for a new Subdomain to propagate (show up on the web).
If your domain is not pointed to InMotion Hosting’s nameservers — or the relevant nameservers in WHM if you are using a VPS or Dedicated Server — you must also create an “a record” wherever your nameservers are hosted when you create a subdomain. Be sure to point the “a record” for the subdomain to your cPanel’s Shared IP address.
Where Do Subdomain Files Go?
Older versions of cPanel required a subdomain’s files to be stored in the parent domain’s directory. This is no longer required. The latest best practices in security recommend that you do not place a domain or subdomain inside of another domain’s directory. cPanel, by default, will create a new, separate directory for your subdomains in your home folder.
Now that you have a subdomain, you can build out an entirely new site without needing to register a new domain.