Skip to content

How to Create a Subdomain in cPanel

This guide shows you how to create a subdomain using cPanel. Subdomains allow you to create separate sections of your website, such as blog.yourdomain.com or shop.yourdomain.com.

Easy Difficulty
1–2 min Time
cPanel Required

What is a Subdomain?

A subdomain is an extension of your main domain that can be used to organise your website into different sections. Each subdomain can function as its own independent website.

Step-by-Step Instructions

Login
Subdomains
Create
Done

Step 1: Login to cPanel

Access your hosting account and open your cPanel dashboard.

Step 2: Open Domains Section

Click on Domains or Subdomains depending on your cPanel version.

Step 3: Enter Subdomain Name

Type the name of your subdomain (e.g. blog, shop, dev).

Step 4: Set Document Root

This is the folder where your subdomain files will be stored.

Step 5: Create Subdomain

Click Create to finish setup.

Examples of Subdomains

blog.yourdomain.com

Used for blogs or content sections.

shop.yourdomain.com

Used for ecommerce stores.

dev.yourdomain.com

Used for testing or development environments.

Important Notes

Instant Setup

Subdomains usually work immediately without DNS changes.

Separate Folder

Each subdomain has its own directory in your hosting account.

Can Install WordPress

You can install WordPress on a subdomain just like a main domain.

Common Issues & Fixes

Subdomain Not Working

Check DNS settings or allow time for propagation if needed.

Wrong Directory

Ensure files are uploaded to the correct subdomain folder.

Page Not Found

Upload an index file or install a CMS like WordPress.

Related Guides

Add Domain

Add additional domains to your hosting account.

View Guide

Install WordPress

Launch a website on your subdomain.

View Guide

Upload Files

Add files to your subdomain directory.

View Guide
← Back to cPanel Guides