How to Create a Subdomain in cPanel

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 your  C panel Hosting account.

 

How to Create a Subdomain in cPanel

The following directions will work for adding a new domain and subdomain to your cPanel account.

  1. Log into your cPanel.
  2. Click Domains under the Domains section.

    cPanel Domains Administration
  3. Click on the Create A New Domain button.

    Click on Create A New Domain
  4. Type in the subdomain (or domain) you want to create in the “Domain” text box. Then deselect the “Share document root (/home/username/public_html) with domain.tld” option.

    Click on the Home icon to locate the directory where you want the files for this subdomain to exist. In our example, we used the auto-generated directory.

    Deselect the Share document root option
  5. Click the Submit button to add the subdomain to cPanel. A success message will appear confirming the creation of your new domain/subdomain.

    New domain created success message

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 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 

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.

  • Subdomain management in cPanel, Add subdomain to your website in cPanel, How to add a subdomain in cPanel, Creating subdomains with cPanel, Subdomain configuration in cPanel, How to manage subdomains on cPanel, Steps to create a subdomain, cPanel guide for subdomains, How to set up a subdomain in cPanel, Creating subdomains for your website on cPanel, cPanel subdomain options and settings, Create a new subdomain on cPanel, cPanel subdomain setup, Create subdomain in cPanel, cPanel subdomain creation tutorial
  • 0 brukere syntes dette svaret var til hjelp
Var dette svaret til hjelp?