How to Create a Subdomain in cPanel


A subdomain is a subsection of your website that exists as a subdirectory in your public_html folder. Subdomains use a prefix in conjunction with the second-level domain name. For example, if the registered domain name was example.com, the subdomain could be prefix.example.com.

Subdomains can be useful for creating unique user accounts for “vanity domains.” This is helpful if, for example, you have a blog, or any other type of website that uses a domain specifically titled for a user.

Add a Subdomain

To create a subdomain:

  1. Login to cPanel.
  2. Enter the desired prefix in the Subdomain field.
  3. Select the desired main domain from the pull-down menu.
  4. Enter the home directory for the subdomain into the Document Root field.
    • This directory will be where files pertaining to the subdomain will be placed.
  5. Click Create.

To open the subdomain’s main directory with the File Manager:

  • Click the link under Document Root that corresponds to the subdomain you would like to view in the File Manager.

Enable or Disable Subdomain Redirection

To enable or disable redirection of a subdomain:

  1. Click the Manage Redirection link corresponding to the subdomain you wish to manage.
  2. If you wish to redirect the subdomain, enter the link you would like to redirect the subdomain to in the available text field.
  3. Click Save.
  4. To disable the redirect, click Disable Redirection.

Remove a Subdomain

To remove an existing subdomain:

  1. Click the Remove link corresponding to the subdomain you would like to remove.
  2. Confirm that you would like to remove the subdomain by clicking Yes.
  3. To keep the subdomain, click No.

Search Subdomains

You may also search through existing domains:

  1. Enter the search criteria into the Search field.
  2. Click Go.

Results matching your search criteria will populate the list.

Check the Video: Add Subdomain in cPanel for a visual aid.

  • subdomain, cpanel
  • 187 Users Found This Useful
Was this answer helpful?

Related Articles

Video: Create Email Address in cPanel

This video tutorial demonstrates how to create an email address using cPanel Shared Hosting...

How to Edit Zone File and Setup DNS Forwarding

To perform DNS forwarding, change your zone file, (MX, A-Records & CNAME) using the following...

Disabling mod_security in cPanel

Mod_security is an apache module that helps to protect your website from various attacks. It is...

Update Nameservers for Domains Registered at GoDaddy

After signing up for a hosting account, you will receive a Welcome email containing important...

Video: Setup Email Forwarder in cPanel

View our Step-by-Step Tutorial Video for Setting up an Email Forwarder in cPanel Shared Hosting.