Creating and configuring subdomains in cPanel. A subdomain is an extension of the main domain and is used to create separate sections of the website.
For example, blog.goai.ro or shop.goai.ro are subdomains of the main domain goai.ro.
Subdomains are useful for organizing content, developing independent platforms, or testing new functionalities.
Creating and Configuring Subdomains
Accessing the Subdomains Option in cPanel
To create a subdomain, follow these steps:
- Log in to cPanel
- Navigate to the DOMAINS section
- Click on the Subdomains option
Creating a New Subdomain
On the “Subdomains” page, fill in the fields as follows:
- Subdomain: enter the desired name (e.g.,
blog) - Domain: select the main domain from the list
- Document Root: fills automatically (e.g.,
public_html/blog), but can be modified
Press the Create button to complete the process. cPanel will automatically create the corresponding directory and configure the subdomain on the server.
Accessing and Publishing Content on the Subdomain
After creating the subdomain, you can access its folder in File Manager, in the directory specified at Document Root (e.g., public_html/blog).
Here you can upload HTML files, install WordPress, or add any web application.
The subdomain becomes publicly accessible immediately at the address https://subdomain.domain.ro.
Creating a Subdomain for Testing
Many administrators use subdomains like dev.domain.ro or staging.domain.ro to test changes before launching in production.
These can be password protected or restricted through the .htaccess file.
Deleting a Subdomain
To remove a subdomain:
- Access the Subdomains section again
- In the list of existing subdomains, locate the desired one
- Click on Remove and confirm the deletion
This action only removes the DNS configuration and access, not the files in the corresponding folder, which must be deleted separately from File Manager.
Redirecting a Subdomain
cPanel allows redirecting a subdomain to another URL address:
- In the Subdomains section, go to the Redirection column
- Click on Manage Redirection
- Enter the destination address (e.g.,
https://www.otherwebsite.ro) - Save the changes
Recommendations for Using Subdomains
- Use subdomains for large and independent structures (e.g., blog, shop, support)
- Don’t abuse subdomains without necessity; they can complicate SEO
- Make sure each subdomain has an active SSL certificate
- Update the
sitemap.xmlandrobots.txtfiles if you’re indexing subdomains
Creating and configuring subdomains in cPanel is a simple process, but extremely useful for organizing and extending a website’s functionalities.
Regardless of whether you want to launch a blog, an online store, or a testing space, subdomains offer a flexible and administratively efficient solution.

Comments (0)