ROT4 Advanced Technology Solutions
ROT4 • ADVANCED TECHNOLOGY SOLUTIONS Preparing your digital experience

Just a moment — we are almost ready

Back to the knowledge base
ROT4 Knowledge Base

Create and manage a subdomain

Create a subdomain such as blog.example.com with its own files, then learn where to upload content and how to update or safely remove it.

Beginner10 minutesReviewed: August 2026

Before you start

  • A primary domain already in cPanel
  • Access to the cPanel account
  • A clear subdomain name
  • A backup before removal
01

Open the Domains tool

From the cPanel home page, find the Domains group and open Domains.

cPanel Domains group with the Domains tool highlighted.
This is the tool used to create and manage subdomains. Namecheap illustrated guide
02

Start creating a domain

On List Domains, choose Create A New Domain. Modern cPanel uses this button for subdomains too.

Create A New Domain button in cPanel Domains.
Use this button to open the subdomain form. Namecheap illustrated guide
03

Enter the full subdomain

Enter an FQDN such as blog.example.com or staging.example.com, not only the word blog.

Domain field containing a complete subdomain example.
The value includes both the subdomain label and the primary domain. Namecheap illustrated guide
04

Use a separate document root

Clear Share document root so the subdomain does not serve the main website, then keep a dedicated folder under public_html.

Share document root cleared with a dedicated folder.
A separate document root keeps the subdomain files isolated. Namecheap illustrated guide
05

Review and submit

Confirm the Domain and Document Root, choose Submit, and wait for the success message.

Completed subdomain form and Submit button.
Review both fields before creating the subdomain. Namecheap illustrated guide
06

Upload the subdomain files

Open File Manager and browse to the Document Root. Add an index.php or index.html file, then test the subdomain URL.

Manage Domain screen showing the document root.
The web server reads the subdomain files from this directory. Namecheap domain management guide
07

Change the document root

In Domains, choose Manage next to the subdomain, enter a New Document Root, and choose Update. cPanel does not move files for you.

New Document Root field in Manage Domain.
Move or copy the website files to the new path yourself. Namecheap domain management guide
08

Remove it safely

Create a backup, then use Remove Domain under Manage. Removing the domain may leave its document-root files behind for manual review.

Remove the Domain warning in cPanel.
Review website files, mail, DNS, and SSL before removal. Namecheap domain management guide
Important
DNS and AutoSSL may need time after creation. Do not change DNS records at random; confirm the primary domain uses the hosting nameservers.

After creation

CheckExpected result
DNSThe subdomain resolves to the correct server
SSLA valid certificate without warnings
Document RootServes the dedicated folder files

Your subdomain is ready

Upload the files, test HTTPS, and record the Document Root in your site documentation.

Technical source: Official cPanel documentation

ADVANCED TECHNOLOGY SOLUTIONS

Technology built around your business.

ROT4 designs, delivers, and supports secure technology environments that help organizations operate with confidence and scale without friction.

IT InfrastructureCybersecurityCloud & HostingDigital Solutions

Let's build what comes next.

+20 127 060 7155

Speak with our team

info@rot4.com.eg

Send us an email

Cairo, Egypt

Our base of operations