A subdomain is a prefix on your domain that behaves as a separate address, such as shop.yourbusiness.ph or staging.yourbusiness.ph. It uses the domain you already own, costs nothing extra, and carries one consequence most businesses discover late: search engines treat it as a related site rather than as part of yours.
In short
- A subdomain sits before the domain; a folder sits after it.
- Folders keep everything contributing to one site. Subdomains do not.
- Use a subdomain when the thing is genuinely separate.
- A forgotten staging subdomain is the most common way one causes trouble.
What a subdomain is
Your domain has parts, read from the right. The ending, the name you registered, and anything in front of it.
Adding something in front creates a subdomain, and it does not need to be bought or registered. It is a record in your DNS saying that this prefix exists and where it points, which is why a subdomain can be created in a few minutes and can point somewhere entirely different from your main site. The mechanics of that pointing are covered under CNAME record.
That freedom is the whole appeal. A subdomain can be hosted by a supplier, run on different software, and be rebuilt without touching your website, while still carrying your name.
That also means a subdomain can exist without anything being on it. Creating the record and pointing it nowhere useful leaves an address that resolves to an error or, worse, to whatever the hosting shows by default. Create them when there is something to put on them.
Subdomain or folder
The decision with consequences is whether a new section should be shop.yourbusiness.ph or yourbusiness.ph/shop.
To a visitor these are close to identical. To a search engine they are not. A folder is part of the same site, so everything published in it contributes to the same standing, and links earned anywhere help everything. A subdomain is treated as a related but distinct property, which has to build its own.
For a small business the practical answer is almost always the folder. A blog at yourbusiness.ph/articles strengthens the site that sells the service. The same blog at blog.yourbusiness.ph is a second site with no history, competing for attention you already paid for once.
Google has said for years that it can handle both, and that is true. Handling both is not the same as treating them identically, and the difference falls on the side of the folder often enough to make it the default.
When a subdomain is right
There are cases where separation is the point, and a folder would be wrong.
- Staging. A working copy of the site, which must never be part of the public one. Covered under staging site.
- A supplier’s software. A help desk, a booking system or a learning platform hosted by somebody else and pointed at your name.
- Customer logins and portals. Separate systems with separate security, which have no business sharing a codebase with your marketing pages.
- Tracking endpoints. A subdomain aliased to a measurement provider, so its requests count as first party.
- Sending. A subdomain used for bulk email, which keeps that reputation apart from the address your quotations go out on, as set out under from address.
The test is whether the content belongs to the same thing you are trying to rank. A shop and a service site usually do. A staging copy and a help desk do not.
The one that goes wrong
Almost every problem a subdomain causes is a forgotten one.
A staging subdomain built for a rebuild, left open to search engines, gets crawled and indexed. Months later somebody searches the business name and finds an unfinished version of the site with placeholder text, old prices and a broken contact form. Nothing was hacked and nothing ranks worse. It simply looks bad, to exactly the people you would not choose.
The second failure is the certificate. A certificate covering yourbusiness.ph does not automatically cover shop.yourbusiness.ph, so a subdomain created without one shows a browser warning, which is the most alarming thing a visitor can be shown. The fix is a wildcard certificate or one that lists each subdomain, and most hosting now does this automatically, which is why the failure shows up on the subdomains somebody created by hand.
The third is simply forgetting they exist. Subdomains accumulate across years and suppliers, and nobody keeps a list. Email deserves a mention of its own there, because it is the case where a subdomain is doing something invisible. A sending subdomain has no website behind it and exists only so bulk email carries its own reputation, which means nobody notices a misconfiguration until a campaign fails to arrive.
Once a year, ask your host what records point where.
Getting it right at the start
Four decisions, made once, avoid most of it.
- Choose folder by default. Move to a subdomain only when you can say what is genuinely separate about the thing.
- Pick www or bare, and redirect the other. Either works. Having both answer independently does not.
- Block staging from search engines and check it, rather than assuming the agency did.
- Keep a list. What subdomains exist, where each points, and who controls the service behind it.
None of this is expensive and all of it is annoying to repair later, which describes most of the domain layer. The wider picture sits under domain and hosting.
Words you will hear
- Subdomain. A prefix on your domain treated as a separate address.
- Subfolder. A path after the domain, treated as part of the same site.
- Wildcard certificate. One certificate covering every subdomain at once.
- DNS record. The entry that says a subdomain exists and where it points.
- CNAME. The record type that points one name at another.
- Apex or bare domain. The domain with nothing in front of it.
- Canonical hostname. The single version, www or bare, that everything else redirects to.
Before anybody creates one, ask what would be lost by using a folder instead. If the answer is nothing, use the folder.
Questions we get
More about subdomain
What is the difference between a subdomain and a folder?
Which is better for SEO, a subdomain or a folder?
When is a subdomain the right choice?
Does www count as a subdomain?
Do we pay extra for subdomains?
Do they need their own SSL certificate?
Can a subdomain hurt the main site?
Do it yourself
Guides on the same topic
Free step by step guides for owners doing the work themselves. No sign up and no email required.
Related terms
Domain hosting
Domain hosting keeps your web address registered and pointed at your site. It is the one thing you pay for that expires quietly when nobody renews it.
CNAME record
A CNAME record points one web address at another address instead of at a server, which is how a subdomain keeps working when the platform behind it moves.
From address
The from address is the email address a message claims to come from. The domain in it decides whether you are authenticated, and whether anything arrives.