Ultra Web Hosting Docs

Subdomains

Subdomains let you create separate sections of your website under your existing domain, such as blog.yourdomain.com or shop.yourdomain.com.

What Is a Subdomain?

A subdomain is a prefix added to your domain name that points to a specific folder on your hosting account. Common uses include:

Each subdomain has its own document root, so it can host entirely different content from your main site.

Creating a Subdomain

  1. Log into cPanel.
  2. In the Domains section, click Domains (or Subdomains on older cPanel versions).
  3. Click Create A New Domain.
  4. Enter the full subdomain (e.g., blog.yourdomain.com).
  5. cPanel will auto-fill the document root. By default, this is public_html/blog. You can change this to any directory you prefer.
  6. Click Submit.
Note Subdomains that use your primary domain do not require any DNS changes. cPanel creates the necessary DNS records automatically. The subdomain is usually accessible within a few minutes.

Uploading Content to a Subdomain

  1. Open File Manager in cPanel.
  2. Navigate to the subdomain's document root (e.g., public_html/blog).
  3. Upload your website files. Place your homepage as index.html or index.php.
Tip You can install WordPress or other applications on a subdomain using Softaculous. During installation, simply select the subdomain from the domain dropdown.

Managing Subdomains

To view and manage your subdomains:

  1. Go to Domains in cPanel.
  2. Your subdomains are listed alongside your other domains.
  3. Click Manage next to any subdomain to change its document root or configure redirects.

Removing a Subdomain

  1. Go to Domains in cPanel.
  2. Find the subdomain you want to remove.
  3. Click Manage, then click Remove Domain.
  4. Confirm the removal.
Warning Removing a subdomain does not delete its files. The document root folder and its contents will remain on the server. Delete them manually through File Manager if they are no longer needed.

Wildcard Subdomains

A wildcard subdomain routes all unmatched subdomains to a single directory. This is useful for applications that generate subdomains dynamically (e.g., user1.yourdomain.com, user2.yourdomain.com).

To create a wildcard subdomain, enter * as the subdomain name. The document root should be the directory where your application handles the routing logic.

Note Wildcard subdomains only catch subdomains that do not already have an explicit DNS record or subdomain configured. Existing subdomains will continue to work as configured.