How do I set up subdomains?

21 views

How do I set up subdomains?

Overview

A subdomain is a prefix added to your main domain (for example: blog.yourdomain.com or shop.yourdomain.com). Subdomains are useful for separating different parts of your website, such as blogs, stores, or test environments.

Step-by-Step Guide (DirectAdmin)

  1. Log in to your DirectAdmin control panel
    • You can access this via your client portal or: yourdomain.com:2222
  2. Go to: Account Manager → Subdomain Management
  3. Click Create Subdomain
  4. Enter your desired subdomain name
    • Example: blog, shop, support
  5. Select your main domain from the dropdown
  6. Click Create

What happens next?

  • Your subdomain will be created instantly
  • A folder is automatically generated in your hosting account
  • You can upload files into the subdomain directory (if needed)
  • It may take a few minutes to become fully accessible

Example structure

  • Main site: yourdomain.com
  • Subdomain: blog.yourdomain.com
  • Subdomain folder: /public_html/blog

Optional: Adding content to your subdomain

To build a website on your subdomain:

  1. Go to File Manager
  2. Open the subdomain folder
  3. Upload your website files (e.g. index.html or WordPress install)

Important Notes

  • Subdomains do not require a separate domain purchase
  • DNS updates are usually automatic when created in DirectAdmin
  • If your domain is not pointing correctly, the subdomain may not load

Common Issues & Fixes

Subdomain not working

  • Check your domain is pointing to our nameservers
  • Wait a few minutes for DNS to update

Seeing default page

  • Ensure you uploaded files into the correct subdomain folder
  • Remove any default index file if necessary

Need Help?

If you need assistance creating or configuring a subdomain, our support team will be happy to help.

Top