Subdomain A subdomain is a part of your main domain that you can use to build another section of your website, or to start a new project altogether. You can create subdomains like : If your primary website is subdomains such as:
blog.example.comshop.example.comsupport.example.comSubdomains are often used for blogs, staging sites, customer portals, support centers or country specific versions of a website.
Sub-domains are a way of separating areas of your website. It's widely used for:
Hosting a blog on a different site from your main site
Setting up a staging/dev environment
How to Start an Online Store
Set up a help desk or knowledge base
Versions of a site for country or language
Subdomains are like their own website, but are still part of your main domain name.
Most hosting providers allow you to create subdomains from cPanel.
Login to your cPanel account
Domains
Subdomains Click

Subdomain name to create

For example:
log
Choose your main domain name
Select document root (folder location)
Click Create
Your subdomain will be set up automatically.
The document root is the folder where the subdomain files are stored.
For example:
/blog/public_html/Any files you upload to this folder will be available on your subdomain.
Most of the hosting panels will create the DNS records for the subdomains automatically. But DNS propagation can still take a while.
In many cases:
The subdomain works on the same server instantly
Setting up external DNS can take from a few minutes to a few hours.
Once the subdomain is created you can:
Wordpress set up
Upload your HTML / PHP file
Set up a staging environment
Install another app/cms
The vast majority of hosting providers offer a one-click installer for WordPress and other applications.
Organize subdomain folders
Use SSL certificates on subdomains (if possible)
Don’t use unnecessary subdomains
Security: Subdomains are separate sites
Subdomains are a simple and powerful way to organize different sections of your website. Subdomains allow you to have a blog, store, staging site or support portal without the need for a separate domain name. These are easy to set up on most hosting platforms with cPanel or similar control panel.