Creating a Subdomain in cPanel

Overview

A subdomain is a subsection of your website that sometimes exists as a subdirectory of your public_html (document root) directory or your account’s home directory. Subdomains use a prefix in conjunction with the domain name. For example, if the registered domain name is example.com, the subdomain will be prefix.example.com.
In this article, you will learn how to create subdomains for your cPanel account.

Create a subdomain in cPanel

  1. Log in to cPanel.
  2. In the control panel homepage, under the Domains section, click on the Domains icon.
  3. Click on Create a New Domain
  4. Under the Domain entry field, enter the name of the subdomain in complete form – eg. (subdomain.domain.ly).
  5. The Document Root entry will be filled and the option “Share document root” will be unchecked automatically. If you want to store the subdomain’s files in another directory, enter the full path in the Document Root entry.
    Note

    The “Document Root” – refers to the directory of the subdomain (where its related files will be stored)

  6. Click Submit to finish creating your subdomain.
Share this:
FacebookTwitterWhatsAppViberCopy LinkTelegramLinkedIn
Updated on April 18, 2023
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support