What is a subdomain?
A subdomain is a prefix added to your main domain name to create a separate section of your website. Subdomains are useful for organising content and applications under your primary domain.
Subdomain examples
- blog.yourdomain.co.za - Blog or news section
- shop.yourdomain.co.za - Online store
- support.yourdomain.co.za - Help desk or documentation
- dev.yourdomain.co.za - Development/staging environment
- mail.yourdomain.co.za - Webmail access
- portal.yourdomain.co.za - Client or employee portal
Subdomain vs addon domain vs subdirectory
| Type | Structure | Best for |
|---|---|---|
| Subdomain | blog.yourdomain.co.za | Separate applications, staging sites |
| Addon Domain | anotherdomain.co.za | Completely separate websites |
| Subdirectory | yourdomain.co.za/blog | Content sections (better for SEO) |
When to use subdomains
- Running different applications (WordPress blog + custom app)
- Creating staging or development environments
- Separating services (shop, support, portal)
- Using different technologies per section (different PHP versions, Node.js apps)
- Organizing large websites into logical sections
When to use subdirectories instead
- Better SEO: yourdomain.co.za/blog passes authority to main domain better than blog.yourdomain.co.za
- Simpler SSL: One certificate covers all subdirectories automatically
- Easier analytics: All traffic tracked under one domain
- Content sections: Blog, portfolio, services pages
SEO recommendation: Use subdirectories (yourdomain.co.za/blog) for content that should benefit your main domain's search ranking. Use subdomains for completely separate applications or services.
Step 1: Create a subdomain in DirectAdmin
- Log in to DirectAdmin
- Go to Domain Setup
- Click Subdomain Management or Subdomains
- Click Create Subdomain
Configure subdomain settings
Fill in the subdomain creation form:
- Subdomain Name: Enter the prefix (e.g.,
blogfor blog.yourdomain.co.za) - Parent Domain: Select the main domain from the dropdown
- Custom Document Root: Leave default or specify a custom folder path
Click Create. The subdomain is created immediately with automatic DNS configuration.
Step 2: Upload files to the subdomain
Each subdomain gets its own folder for website files.
Default subdomain folder location
Files for blog.yourdomain.co.za are stored in:
/domains/yourdomain.co.za/public_html/blog/
Or if using separate document root:
/domains/blog.yourdomain.co.za/public_html/
Uploading subdomain files
- Use the DirectAdmin file manager or FTP
- Navigate to the subdomain folder
- Upload your website files (index.html, index.php, etc.)
- The subdomain will load the uploaded content immediately
Step 3: Verify subdomain is working
- Open your web browser
- Go to
https://subdomain.yourdomain.co.za - You should see your uploaded files or a DirectAdmin default page
If the subdomain does not load, wait a few minutes for DNS propagation and clear your browser cache.
Managing existing subdomains
Viewing all subdomains
- Go to Domain Setup β Subdomain Management
- You will see a list of all subdomains with their folder paths and URLs
Modifying a subdomain
To change the document root or other settings:
- Go to Subdomain Management
- Find the subdomain you want to modify
- Click Modify or the pencil icon
- Update the document root or other settings
- Click Save
Deleting a subdomain
- Go to Subdomain Management
- Find the subdomain to delete
- Click Delete or the trash icon
- Confirm deletion
Warning: Deleting a subdomain removes its DNS record and may delete its files (depending on folder structure). Back up files before deleting.
SSL certificates for subdomains
Subdomains need their own SSL certificates or must be covered by a wildcard certificate.
Option 1: Individual subdomain certificates
- Go to SSL Certificates in DirectAdmin
- Select the subdomain from the dropdown
- Request a Let's Encrypt certificate
- The subdomain will have HTTPS enabled
Option 2: Wildcard certificate
A wildcard certificate (*.yourdomain.co.za) covers all subdomains automatically. Contact 0724 Hosting support for wildcard certificate setup.
See our SSL certificate guide for more details.
Email addresses for subdomains
You can create email addresses using subdomain names (e.g., info@blog.yourdomain.co.za).
- Go to Email Manager β Email Accounts
- Click Create Account
- In the domain dropdown, select your subdomain
- Enter the username and password
- Click Create
Note: Using the main domain for email (info@yourdomain.co.za) is more professional than subdomain email addresses.
DNS records for subdomains
DirectAdmin automatically creates an A record for new subdomains pointing to your server IP.
Viewing subdomain DNS records
- Go to DNS Management in DirectAdmin
- Select the parent domain
- Look for the subdomain A record (e.g.,
blogpointing to server IP)
Pointing a subdomain to external service
To point a subdomain to a third-party service (e.g., Shopify, external server):
- Go to DNS Management
- Select the parent domain
- Find the subdomain A record
- Edit the record to point to the external IP address or create a CNAME record
See our DNS management guide for details.
Common subdomain uses
Blog subdomain
Create blog.yourdomain.co.za and install WordPress using Softaculous:
- Create the subdomain in DirectAdmin
- Go to Softaculous β WordPress
- Select the subdomain as the installation domain
- Complete the installation
Development/staging subdomain
Create dev.yourdomain.co.za to test changes before deploying to production:
- Create the subdomain
- Copy your production website files to the subdomain folder
- Use the subdomain for testing updates, plugins, or redesigns
- When ready, copy changes to the main domain
Webmail subdomain
Create mail.yourdomain.co.za for easy webmail access:
- Create the subdomain
- Set up a redirect to your webmail URL (e.g., https://webmail.yourdomain.co.za)
- Or use DirectAdmin's redirect feature
Client portal subdomain
Create portal.yourdomain.co.za for client login areas:
- Create the subdomain
- Install membership or portal software (WordPress with membership plugin, custom app, etc.)
- Configure separate database and security settings
Subdomain limits
Most 0724 Hosting plans include unlimited subdomains. Check your hosting plan details in the client area if you encounter subdomain creation limits.
Troubleshooting subdomains
Subdomain not loading
If the subdomain shows an error or does not load:
- Wait 5β10 minutes for DNS propagation
- Clear your browser cache (Ctrl+F5 or Cmd+Shift+R)
- Verify you uploaded files to the correct folder
- Check the subdomain exists in DirectAdmin subdomain management
- Test from a different device or network
Subdomain shows parent domain content
If the subdomain displays the main domain's website:
- Verify the subdomain has its own separate folder
- Check the document root is correctly configured
- Ensure there is an index file (index.html or index.php) in the subdomain folder
- Clear browser cache and DNS cache
Subdomain SSL not working
If HTTPS does not work for the subdomain:
- Request a Let's Encrypt certificate for the subdomain specifically
- Verify the certificate was generated successfully (check SSL Certificates page)
- Wait a few minutes for certificate activation
- Force HTTPS using .htaccess redirect if needed
Cannot create subdomain
If DirectAdmin prevents subdomain creation:
- Check the subdomain name contains only letters, numbers, and hyphens
- Verify the subdomain does not already exist
- Ensure you have not reached your plan's subdomain limit (rare)
- Contact support if the issue persists
Best practices for subdomains
- Use descriptive names: blog, shop, support (not subdomain1, test123)
- Enable SSL for all: Request Let's Encrypt certificates for every subdomain
- Separate staging from production: Use dev.yourdomain.co.za or staging.yourdomain.co.za for testing
- Consider SEO impact: Use subdirectories instead of subdomains for content that should boost main domain SEO
- Organise logically: Group related functionality under clear subdomain names
- Document subdomains: Keep a list of what each subdomain is used for
- Back up separately: Include subdomain files and databases in your backup routine
- Monitor resources: Subdomains share hosting account resources
Subdomain vs folder: SEO considerations
Search engines treat subdomains as separate entities from the main domain. This has SEO implications:
Subdomains (blog.yourdomain.co.za)
- Pros: Separate identity, can rank independently, good for distinct services
- Cons: Does not pass link authority to main domain, requires separate SEO effort
Subdirectories (yourdomain.co.za/blog)
- Pros: All content strengthens main domain, easier to rank, shared link authority
- Cons: Everything under one domain identity
SEO recommendation from 0724 Hosting: Use subdirectories for blogs, portfolios, and services. Use subdomains only for truly separate applications (online stores, member portals, staging sites).
Getting help with subdomains
If you need assistance creating subdomains, configuring DNS, troubleshooting subdomain issues, or planning subdomain structure, contact 0724 Hosting support. We can help with subdomain setup, SSL configuration, and website organisation.