How a subdomain works
If you own the domain yourcompany.com, you can create as many subdomains under it as you like: shop.yourcompany.com, blog.yourcompany.com, test.yourcompany.com. They aren’t registered or paid for separately. You just add them in DNS and say which server or folder they should point to. Each subdomain can run on a different system and even a different host.
The familiar “www” is technically a subdomain too. That is why a website should be available on one version, with or without www, and the other should redirect to it.
What subdomains are good for
- A separate application: a booking system, client area or web application alongside a company website on WordPress.
- A test environment: staging at test.yourcompany.com.
- External services, such as a helpdesk, newsletter or an online shop on another platform.
- Branches or languages, although folders are more common for language versions these days.
Subdomain or folder?
Google treats a subdomain partly as a separate website. A blog at blog.yourcompany.com therefore helps the main site less than it would at yourcompany.com/blog. If the content is meant to support the main site’s SEO, a folder is usually the better choice. Use a subdomain for something that is technically separate.
A real-world example
A car repair shop in Nitra has a brochure website on WordPress and online appointment booking as a separate Laravel application at objednavky.autoservis.sk. Both parts can be updated independently, and an outage in one doesn’t affect the other. The customer still sees one brand and one domain. I build solutions like this as custom web applications.
What to watch out for
- Each subdomain needs its own SSL certificate, or one certificate covering all subdomains.
- Password-protect test subdomains and block them from indexing.
- Delete subdomains you no longer use so they don’t point to cancelled services.