elfsightSkip to content
Creating and Configuring Subdomains in cPanel

Creating and Configuring Subdomains in cPanel

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:

  1. Log in to cPanel
  2. Navigate to the DOMAINS section
  3. 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:

  1. Access the Subdomains section again
  2. In the list of existing subdomains, locate the desired one
  3. 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:

  1. In the Subdomains section, go to the Redirection column
  2. Click on Manage Redirection
  3. Enter the destination address (e.g., https://www.otherwebsite.ro)
  4. 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.xml and robots.txt files 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.

Special SEO Services – We offer specialized SEO optimization and search engine marketing services. Contact us now!

Previous post
Next article

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top
ROEN