In short
A subdomain is a sub-address added in front of your main domain that has its own folder (e.g. blog.yoursite.com). In cPanel, go to Domains → Create A New Domain, enter blog.yoursite.com, uncheck 'Share document root' and set a separate folder. If your nameservers point to the hosting, the DNS record is created automatically, and running AutoSSL adds a free SSL certificate to the subdomain.
In this guide
- What is a subdomain used for? Use cases
- How to create a subdomain in cPanel
- DNS record: automatic or manual?
- SSL certificate for a subdomain
- Redirecting a subdomain to another address
- Subdomain limits by plan
- Tips for installing apps on a subdomain
- Using email on a subdomain
- Before you delete a subdomain
- Common problems
- Next step
A subdomain is an address created by adding a prefix in front of your main domain, usually with its own folder and its own content, such as blog.siteniz.com, magaza.siteniz.com or test.siteniz.com. It lets you publish different sections of your site, or completely separate applications, without buying a new domain. Creating a subdomain in cPanel takes a few minutes; if your nameservers point to your hosting, the DNS record and a free SSL certificate are set up automatically too.
What is a subdomain used for? Use cases
- Blog or news section: While your main site runs on a ready-made template, you can publish WordPress on
blog.siteniz.com. - Test (staging) environment: Try theme or plugin updates on
test.siteniz.combefore pushing them to the live site. For details, see our WordPress staging guide. - Online store or booking system: Keeping your company site and e-commerce platform separate makes maintenance easier.
- Customer or support portal: Applications such as
panel.siteniz.comordestek.siteniz.com. - Language or regional sites: Separate language versions such as
en.siteniz.com. - Connecting an external service: Pointing a subdomain to a service on another platform with a CNAME record.
Subdomain or subfolder?
When choosing between blog.siteniz.com and siteniz.com/blog, use this distinction: if the blog is a natural part of the main site's content and runs on the same software, a subfolder makes management easier. If it involves different software, a different team or a completely separate application, a subdomain gives you a cleaner separation. Search engines can index both structures; what matters is content quality and your internal linking.
How to create a subdomain in cPanel
In current cPanel versions, subdomains are managed from the Domains screen. Some servers also still have the old Subdomains screen; the logic is the same in both.
- In cPanel, open Domains → Domains.
- Click the Create A New Domain button.
- In the Domain field, type the full subdomain:
blog.siteniz.com. - Uncheck the Share document root (public_html) box. If it stays checked, the subdomain shows the same content as your main site.
- Check the Document Root field. cPanel usually suggests a folder such as
blog.siteniz.com; you can change it if you like. - Click Submit.
On the old Subdomains screen, you type only blog in the prefix field and pick your main domain from the dropdown; the document root fills in automatically.
Recommended folder structure
/home/kullaniciadi/
├── public_html/ # siteniz.com
├── blog.siteniz.com/ # blog.siteniz.com
└── test.siteniz.com/ # test.siteniz.comKeeping the subdomain folder outside public_html prevents the same content from also being reachable at a second address such as siteniz.com/blog.
DNS record: automatic or manual?
If your domain's nameservers point to your hosting account, cPanel automatically adds the A record the subdomain needs to its own DNS zone; you don't need to do anything else. If you manage your DNS with another provider (e.g. in your domain registrar's panel or a CDN service), you must add the record there manually:
blog.siteniz.com. 3600 IN A 203.0.113.10
; or, if it should point to the same server as the main domain:
blog.siteniz.com. 3600 IN CNAME siteniz.com.The IP address is an example; the correct value is shown in the General Information panel on the cPanel home screen. You can check whether the record has propagated with this command:
# Linux / macOS
dig +short blog.siteniz.com
# Windows
nslookup blog.siteniz.comFor more on DNS record types, see our guide to A, CNAME, MX and TXT records.
SSL certificate for a subdomain
cPanel's AutoSSL feature automatically gets and renews free certificates for the domains and subdomains in your account. When you add a new subdomain, the certificate is issued on the next automatic check; if you don't want to wait, follow these steps:
- Make sure the DNS record resolves to the server IP. If AutoSSL can't verify that the domain points to this server, it can't issue a certificate.
- Open the Security → SSL/TLS Status screen.
- Click the Run AutoSSL button.
- Check that the lock icons next to the
blog.siteniz.comandwww.blog.siteniz.comrows have turned green.
Once the certificate is installed, turn on the Force HTTPS Redirect toggle on the Domains screen so the subdomain always loads over HTTPS. We explain how AutoSSL works in detail in our free SSL setup guide.
Wildcard subdomains and certificates
A wildcard subdomain in the form *.siteniz.com sends every undefined sub-address to a single folder; it's used in multi-tenant applications. Wildcard certificates usually require DNS-based validation and can't be issued with standard HTTP validation. If you need one, it's best to talk to the support team before setting it up.
Redirecting a subdomain to another address
If you want the subdomain to go to another address instead of hosting content, there are two ways:
- cPanel → Domains → Redirects: Create a permanent (301) redirect and enter the target address.
- .htaccess: Add the rule below to the
.htaccessfile in the subdomain's folder.
RewriteEngine On
RewriteRule ^(.*)$ https://siteniz.com/blog/$1 [R=301,L]Subdomain limits by plan
The number of subdomains you can create depends on your plan:
| Plan | Subdomain limit | Addon domain limit |
|---|---|---|
| SA-CP-1 | 2 | 0 |
| SA-CP-2 | 5 | 1 |
| SA-CP-3 | 10 | 2 |
| SA-CP-4 | 20 | 5 |
| SA-CP-5 | 50 | 10 |
| SA-CP-6 | Unlimited | Unlimited |
Subdomains also share the account's RAM, CPU and disk with the main site. For example, if you'll run WordPress on both the live site and a staging environment, factor in the database limit as well; every WordPress install uses its own database.
Tips for installing apps on a subdomain
- Use a separate database: If the staging environment connects to the live site's database, your experiments change live data directly.
- Hide the staging site from search engines: In WordPress, check "Discourage search engines from indexing this site" under Settings → Reading, or password-protect the folder with Directory Privacy.
- Set the PHP version separately: MultiPHP Manager lets you choose a different PHP version for each domain and subdomain, which is ideal for testing a new PHP version on staging first.
Using email on a subdomain
Technically, you can also create email accounts on a subdomain, such as destek@destek.siteniz.com, but for most businesses this is unnecessary and confusing. For business correspondence, using addresses on the main domain (destek@siteniz.com) is better for both memorability and deliverability. If you need to send email from a subdomain (e.g. an app's notification address), check on the Email Deliverability screen that SPF and DKIM records exist for that subdomain too; otherwise messages may land in the spam folder.
Before you delete a subdomain
You can remove a subdomain you no longer use from the Domains screen. Removing it deletes the subdomain's DNS record and its link to the account, but it does not automatically delete the files in its folder or the related database. So:
- Back up the folder and, if there is one, the database.
- If the subdomain is indexed by search engines, consider setting up a 301 redirect to the new address where you moved the content.
- After removing the subdomain, delete the unused folder and database to free up your disk and database limits.
Forgotten staging environments are among the most frequently attacked areas because of old plugins and outdated software; don't leave subdomains you don't use online.
Common problems
- The subdomain shows the main site: The document root is set to
public_html. Delete the subdomain and create it again with a separate folder. - "Site can't be reached" error: The DNS record is missing or hasn't propagated yet. If you use external DNS, make sure you added the A or CNAME record.
- SSL warning: AutoSSL ran before DNS propagated. Run AutoSSL again once the record points to the correct IP.
- Limit error: Your plan's subdomain allowance is used up; delete unused subdomains or move to a higher plan.
Next step
If you plan to split several sections such as a blog, staging environment and store into subdomains, starting with a plan that has enough subdomain and database allowance makes things easier. Sunucu Atlas cPanel web hosting plans come with the LiteSpeed web server, NVMe storage and a free SSL certificate. For a live site plus a staging environment, SA-CP-3, with 10 subdomains and 10 databases, is a good fit; for many subdomains and client projects, SA-CP-4 with 20 subdomains gives you plenty of room.
Frequently asked questions
Do I need to buy a separate domain for a subdomain?
No. A subdomain is created under the main domain you already own and doesn't require an extra domain fee; you only need to check your plan's subdomain limit.
Is an SSL certificate installed on a subdomain automatically?
Yes. cPanel's AutoSSL feature also issues free certificates for subdomains. For this to work, the subdomain's DNS record must point to the hosting server.
How long does a subdomain take to work after I create it?
If your nameservers are at your hosting, it usually works within a few minutes. If you manage DNS with an external provider, you need to add the record and wait for propagation.
Does a subdomain hurt the main site's SEO?
No. Search engines can index subdomains as separate sites; use a subfolder if the content is a natural part of the main site, and a subdomain if it's a separate application.
Can I install WordPress on a subdomain?
Yes. In the installer, select the subdomain as the domain and leave the directory field empty; each install uses its own database.