
What Is a Subdomain?
A subdomain is a prefix added to your main domain, separated by a dot. For example, if your domain is example.com, you can create subdomains such as blog.example.com, shop.example.com, or api.example.com. Each subdomain can point to a different directory on your server or even to a completely separate server, giving you maximum flexibility in how you structure your web presence.
Technically, subdomains work through DNS records in exactly the same way as your main domain. You create an A record or CNAME record pointing the subdomain to an IP address or hostname. On shared hosting plans running DirectAdmin — like those offered by AsiaGB — this is handled entirely through a graphical interface with no manual DNS file editing required.
Subdomain vs Subfolder: What Is the Difference?
Before deciding to use a subdomain, it helps to understand when a subfolder is a better option. Both approaches have distinct strengths depending on your goals.
Subdomain (blog.example.com)
- Google treats a subdomain as a separate website with its own SEO authority — it does not automatically inherit authority from the main domain.
- Suitable for sections with fundamentally different content or technology from the main site.
- Can have its own server configuration, application framework, database, and SSL certificate.
- Best for separate login systems, staging environments, or distinct apps.
Subfolder (example.com/blog)
- Google treats a subfolder as part of the main website, so SEO authority is pooled together.
- Ideal when you want blog articles or landing pages to reinforce the SEO strength of your main domain.
- Simpler to manage — everything lives under one directory and one SSL certificate.
- No additional DNS configuration or SSL setup required.
Simple rule: Use a subfolder when content is meant to support the main site's SEO (e.g., a blog). Use a subdomain when you need technical separation — a separate application, a staging environment, or a distinct service.
Subdomain vs Subdirectory vs Add-on Domain: How They Differ
Besides subdomains and subfolders (also called subdirectories), there is a third option that often causes confusion: the add-on domain. All three organize websites within a single hosting account, but they behave very differently and affect SEO in distinct ways. The table below summarizes the differences so you can choose correctly from the start.
| Aspect | Subdomain | Subdirectory | Add-on Domain |
|---|---|---|---|
| Example | blog.example.com | example.com/blog | anothersite.com |
| Main domain | Same domain | Same domain | A separate domain name |
| SEO authority | Separate from main site | Pooled with main site | Independent website |
| DNS setup | Yes (A/CNAME) | Not required | Yes (point NS to hosting) |
| Best for | Separate apps, staging, API | Blog or SEO-supporting content | A different brand in one account |
In short, if you only need to separate sections of content within the same brand, a subdomain or subdirectory is enough. But if you want to manage a completely different domain name within a single hosting account to save costs, an add-on domain is the answer. All three are fully supported on AsiaGB's DirectAdmin and can be combined freely as your needs evolve.
Common Use Cases for Subdomains
Subdomains are particularly well-suited for the following scenarios:
- Language versions — th.example.com for Thai content, en.example.com for English
- Staging sites — staging.example.com for testing changes before pushing to production
- Separate services — shop.example.com for e-commerce, support.example.com for a helpdesk system
- API endpoints — api.example.com for a backend API used by mobile apps or third-party integrations
- Admin panels — admin.example.com to separate the management interface from the public-facing site
- CDN or static assets — cdn.example.com to serve images and large files separately for better performance
What You Can Do With Subdomains (Blog, Shop, API, Staging)
Many people know what a subdomain is but are unsure when to actually use one. Below are the most common real-world scenarios, along with why a subdomain is often the better fit than the alternatives.
A Separate Blog (blog.example.com)
If your main site runs on one framework but you want your blog to use WordPress or Ghost for easier content management, a subdomain lets you install two different systems without interference. You can update the blog's theme or plugins freely without risking the main site going down. That said, if your primary goal is boosting brand SEO, weigh this against a subdirectory (see the SEO section below).
An Online Store (shop.example.com)
E-commerce systems often need their own database, SSL certificate, and stricter security settings than regular pages. Placing the store on a subdomain lets you contain the security scope, isolate payment logs, and scale resources specifically for the store when order volume spikes.
An API Endpoint (api.example.com)
If you build a mobile app or expose integrations to third parties, a dedicated subdomain for your API keeps rate limiting, CORS, and API versioning organized. Your team can also deploy the backend independently from the front-end site without releasing the whole system at once.
A Staging Environment (staging.example.com)
Before pushing new features to production, a staging subdomain lets your team and clients test in an environment that mirrors the real site. Generally, you should set this subdomain to noindex and password-protect it so Google never indexes test content. On DirectAdmin, you can apply Password Protect Directory in just a few clicks.
How to Create a Subdomain in DirectAdmin
If you are on an AsiaGB hosting plan with DirectAdmin, creating a subdomain is straightforward. Follow these steps:
- Log in to DirectAdmin using your credentials — typically at yourdomain.com:2222.
- Go to "Domain Management" and click "Subdomain Management."
- Select your main domain from the dropdown list.
- Enter the subdomain name in the input field — for example, type "blog" to create blog.yourdomain.com.
- Choose the directory where the subdomain files will be stored, or let DirectAdmin create a new directory automatically.
- Click Create. The subdomain will be active within 1–5 minutes.
Once created, upload your website files to the assigned directory and your subdomain is ready to serve visitors. You can create as many subdomains as your hosting plan allows.
Check Whether the Subdomain Is Working
After you click Create, the system automatically generates the directory and DNS record. You can verify it in several ways. Start by opening your browser and typing the subdomain URL directly — if it shows a blank page or a directory index, the subdomain is live. For a deeper check, run ping blog.yourdomain.com or use a DNS Lookup tool to confirm the subdomain points to the correct IP address. If it still doesn't resolve, wait for DNS propagation as described in the note below.
Delete or Edit a Subdomain Later
If you no longer need a subdomain, go to Subdomain Management in DirectAdmin and remove it. The system will ask whether you also want to delete the files in the associated directory. We recommend downloading a backup of those files before deleting, to avoid losing data you may still need.
SSL for Subdomains
Each subdomain can have its own SSL certificate. If you use Let's Encrypt via DirectAdmin — available free on all AsiaGB hosting plans — you can issue an SSL certificate for each subdomain individually. Go to "SSL Certificates" in DirectAdmin, select the subdomain, and issue a free certificate in a few clicks.
Alternatively, if you want a single SSL certificate to cover your main domain and all subdomains simultaneously, consider a Wildcard SSL Certificate (*.example.com). This eliminates the need to issue separate certificates for each subdomain. AsiaGB offers Wildcard SSL certificates for businesses that need this broader coverage.
Note on DNS propagation: Newly created subdomains may take between a few minutes and up to 24 hours to be accessible globally, depending on DNS propagation. Subdomains on domains that use AsiaGB's own nameservers typically become active much faster.
Subdomains and SEO (Separating or Pooling Domain Authority)
The most common question about subdomains is whether they affect SEO. The answer is yes — Google typically treats a subdomain as a website separate from the main domain. That means the domain authority your main site has accumulated does not fully transfer to the subdomain automatically. You may need to build a separate set of backlinks and quality content for the subdomain to rank well on its own.
By contrast, a subdirectory (example.com/blog) consolidates SEO strength under one domain. Every article you add directly reinforces the authority of the main domain. This is why many large sites place their blog as a subdirectory rather than blog.example.com — so the articles help push the main site's target keywords as well.
So when is a subdomain the better SEO choice? When the content or audience is clearly distinct from the main site — for example, a foreign-language site, a community platform, or a service that differs from the core business. Splitting these into a subdomain helps Google understand that the two sections have different contexts, preventing their keywords from competing with each other. Whichever approach you choose, the key is consistency from the start, because migrating from a subdomain to a subdirectory later requires 301 redirects and may cause a temporary ranking dip.
Recommendation: If you are unsure, ask yourself: "Should this content help push the main site's keywords?" If yes, use a subdirectory. If the content is a different topic, a different brand, or needs clear technical separation, use a subdomain.
Frequently Asked Questions About Subdomains
Do subdomains cost extra?
Generally, subdomains incur no additional cost because they use the main domain you have already registered. AsiaGB hosting running DirectAdmin lets you create unlimited subdomains within your plan. You pay only for the main domain and your hosting as usual.
How many levels of subdomains can I create?
Technically you can nest subdomains across several levels, such as api.v2.example.com, but in practice we recommend no more than one or two levels. Deeply nested subdomains are harder to remember, more complex to manage with SSL, and can confuse both users and search engines.
Can a subdomain share the same SSL certificate as the main domain?
A standard SSL certificate issued for example.com does not automatically cover blog.example.com. To cover all subdomains with a single certificate, you need a Wildcard SSL (*.example.com), or you can issue a separate free Let's Encrypt certificate for each subdomain through DirectAdmin.
Can I convert a subdomain into a subdirectory later?
Yes, but it requires planning. You must move the content to the new structure, then set up 301 redirects from the old subdomain to the new URLs to preserve SEO during the transition. Rankings may fluctuate temporarily before stabilizing, so it is best to choose the right structure from the start.
Hosting with Full DirectAdmin Features
Unlimited subdomains, free SSL, SSD storage, 99% uptime — starting from just 500 THB/year
Search & Register Domain