Subdomain Thailand Guide
Contents
What is Subdomain
A subdomain is a prefix segment of a domain name. If the main domain is example.com, then blog.example.com, shop.example.com, or mail.example.com are subdomains — each can point to different IP addresses or servers.
Subdomain
Subdomains have many uses: separating a blog from the main site, isolating an e-commerce store, creating staging environments for testing, API endpoints, CDN for images, mobile versions of websites, or regional sites.
Subdomain vs Subdirectory
Subdomain (blog.example.com) vs Subdirectory (example.com/blog): subdomains create separate entities that can be hosted on different servers with different CMS. Subdirectories use the same server and configuration, and are generally simpler for SEO.
Setup: DNS Subdomain
Create a subdomain by adding an A Record or CNAME Record to the domain's DNS zone. If the subdomain points to the same IP as the root domain, use an A Record with the same IP. If pointing to another domain (CDN, GitHub Pages), use a CNAME Record.
Setup: Subdomain Hosting
In cPanel or DirectAdmin, go to Subdomains section, add the subdomain name (e.g., blog) and document root (e.g., /public_html/blog). The system automatically creates the folder. Upload files to that folder and the subdomain is ready.
Subdomain SEO
Subdomains and subdirectories affect SEO differently. Google treats subdomains as separate entities — sometimes requiring rebuilding authority. Subdirectories share the root domain's authority. For blogs or SEO-driven content, subdirectories are generally preferable.
Wildcard Subdomain
Wildcard subdomain (*.example.com) accepts requests for any subdomain not explicitly defined — used for multi-tenant applications like username.example.com or customer.example.com. Requires wildcard DNS A Record and hosting support for wildcards.
Subdomain
Popular real-world subdomain examples: docs.example.com for documentation, status.example.com for status pages, app.example.com for web apps, en/th.example.com for multilingual sites, m.example.com for mobile versions.
Verdict: Subdomain
Step-by-step: 1. Add DNS Record (A or CNAME) at DNS provider 2. Wait 30 min to 24 hours for propagation 3. Configure at hosting (cPanel/DirectAdmin) 4. Request SSL certificate for subdomain 5. Test HTTPS functionality.