StarDomain

Creating and Managing Subdomains

Creating and Managing Subdomains

A subdomain is a prefix added to your domain (e.g., blog.yourdomain.com).

Creating a Subdomain in cPanel

  1. Go to Domains (or Subdomains in older cPanel)
  2. Click Create A New Domain
  3. Enter the subdomain (e.g., blog.yourdomain.com)
  4. The document root is set automatically
  5. Click Submit

Creating a Subdomain in DirectAdmin

  1. Go to Subdomain Management
  2. Enter the subdomain name
  3. Click Create

Creating a Subdomain in Plesk

  1. Go to Websites & Domains
  2. Click Add Subdomain
  3. Enter the name and document root
  4. Click OK

Common Uses

  • blog.yourdomain.com — separate blog
  • shop.yourdomain.com — e-commerce store
  • dev.yourdomain.com — development/staging
  • mail.yourdomain.com — webmail access

DNS Setup

Subdomains typically use an A record pointing to your hosting server IP:

TypeNameValue
AblogYOUR_SERVER_IP

If using Cloudflare or external DNS, add the record there.

SSL for Subdomains

  • AutoSSL in cPanel covers subdomains automatically
  • In Plesk, issue a certificate per subdomain
  • Wildcard SSL (*.yourdomain.com) covers all subdomains