How to create a subdomain depends on where your DNS is managed, but the DirectAdmin part takes only a few minutes. This guide shows you how to create blog.example.com, connect it correctly, and install WordPress without accidentally putting the site in the wrong folder.
What a subdomain is
A subdomain is a separate hostname placed before your main domain. For example, blog.example.com, shop.example.com, and staging.example.com are subdomains of example.com.
You can use a subdomain for a distinct part of a website:
blog.example.comfor a blog or publicationshop.example.comfor a separate shop applicationstaging.example.comfor a private test copylearn.example.comfor courses or documentation
Creating the hostname does not automatically create the website content. DirectAdmin creates the hosting entry and its document location; you still need to upload files or install an application such as WordPress.
Subdomain vs subfolder for SEO
A subfolder looks like example.com/blog, while a subdomain looks like blog.example.com. Both can work, so choose based on how you want to organise and manage the site.
Google says it has no ranking preference between subdomains and subfolders. The practical difference is that a subdomain behaves like a separate hostname: you may need separate site settings, analytics configuration, redirects, and Search Console checks. A subfolder is usually simpler when the blog is just another section of the same website.
Use a subdomain when the section has a different application, team, login system, or deployment process. Use a subfolder when you want one WordPress site and one shared content structure.
For more detail, see Google’s official guidance on subdomains and subfolders.
Before you start
Have these details ready:
- An active hosting account with the main domain added to DirectAdmin.
- The exact subdomain label you want, such as
blogorstaging. - Access to the DNS provider if your domain does not use the hosting account’s nameservers.
- Your WordPress administrator name, password, and email if you plan to install WordPress.
Do not type https:// into a subdomain field. In most DirectAdmin screens, you enter only the label, such as blog; the panel combines it with the selected domain.
Step 1: Open your DirectAdmin account
Why: You must work at the user level, where DirectAdmin lets hosting customers manage domains, subdomains, DNS records, files, and databases.
- Open your DirectAdmin login page. For HostKarle, use panel.hostkarle.in.
- Enter your hosting username and password.
- If the interface shows an account-level selector, choose the User level.

The DirectAdmin documentation confirms that subdomain and DNS management are user-level tasks. If you can log in but cannot see domain controls, you may be at the wrong account level or your hosting package may not have the required access.
Step 2: Create the subdomain in DirectAdmin
Why: This creates the web-hosting entry and gives the subdomain a location for its files.
- Open Account Manager.
- Select Subdomain Management. Some DirectAdmin skins may show a closely named Subdomains option.
- Click Add Subdomain or Create Subdomain.
- Enter the label only. For
blog.example.com, enterblog. - Select the parent domain, such as
example.com, if DirectAdmin asks you to choose one. - Review the resulting hostname and document-root details.
- Click Create or Save.
Success looks like a new row for blog.example.com in the subdomain list. Note the document root shown by your panel; you will use that location when uploading files. Do not assume that a path from another host or another DirectAdmin skin is the same on your account.
The DirectAdmin documentation also recommends checking that an A record exists when a newly created subdomain does not resolve. The next step explains when you need to add that record yourself.
Step 3: Check where your DNS is managed
Why: A subdomain can exist in DirectAdmin but remain unreachable if the public DNS zone does not contain a record for it.
There are two common setups.
DNS is managed by your hosting account
If your domain uses the hosting nameservers, DirectAdmin can normally write the DNS entry for the subdomain. HostKarle’s nameservers are:
ns1.fastnsdns.com
ns2.fastnsdns.com
In this setup, open Account Manager → DNS Management and look for the new blog record under the parent domain. The exact record display can vary by DirectAdmin skin, but the hostname should correspond to blog.example.com and point to the hosting service.
DNS is managed at another provider
If the domain still uses a registrar, DNS service, or another provider’s nameservers, add the record at that provider instead. Creating the subdomain in DirectAdmin does not edit an external DNS zone.
Add an A record with values similar to these:
| Field | Value |
|---|---|
| Type | A |
| Name / Host | blog |
| Value / Points to | The hosting IP shown in your hosting account or welcome details |
| TTL | The provider’s default value is usually fine |
Use the hosting IP supplied for your own account. Never copy an IP from a tutorial or from another customer. If the external DNS provider asks for a fully qualified name instead of a label, enter blog.example.com.
If you want to point the whole domain to HostKarle, follow the steps in how to point a domain to hosting. If you only need this one subdomain to use the hosting account, add the specific record above and leave the rest of your DNS arrangement unchanged.
Step 4: Wait for DNS and verify the hostname
Why: DNS caches can make a correct record appear unavailable for a while, so test both the record and the website.
- Save the DNS record.
- Wait for the record to become visible through your DNS provider and internet resolvers.
- Check the record from a terminal:
dig +short blog.example.com
On Windows, use:
nslookup blog.example.com
- Confirm the result is the hosting IP you were given.
- Open
http://blog.example.comin a private browser window. - Once DNS resolves, open
https://blog.example.comas well.
Success means the hostname resolves to the correct hosting account and the browser reaches the subdomain. A blank directory listing, default page, or “no index” message can still be normal at this stage: it means the hostname works but no site files have been installed yet.
On HostKarle, the shared hosting plans include free auto-renewing Let’s Encrypt SSL. Allow the subdomain to resolve first, then check HTTPS and the SSL status in your panel if the certificate is not active immediately.
Step 5: Upload files or install WordPress
Why: The subdomain needs an application or website files before visitors can see useful content.
Install WordPress with Softaculous
- Open Softaculous from DirectAdmin.
- Choose WordPress and click Install.
- Select the correct protocol, preferably
https://after SSL is ready. - Select the parent domain and then the new subdomain, such as
blog.example.com. - Leave In Directory empty if WordPress should open at
blog.example.com. - Enter the site name, administrator username, strong password, and recovery email.
- Check the installation location carefully, then start the installation.
If you enter wp in In Directory, the site will be at blog.example.com/wp instead of the subdomain root. For a new blog, that is usually not what you want.
For the full application setup, see how to install WordPress in DirectAdmin with Softaculous.
Upload another application
Use File Manager or FTP to upload the application into the document root shown in Step 2. If the application needs a database, create it in Account Manager → MySQL Management, then use the database, username, host, and password in the application’s configuration screen.
Do not upload a second copy into the parent domain’s public_html directory unless that is the document root displayed for the subdomain. The document-root value in your account is the source of truth.
Verify the finished subdomain
Run this short check before sharing the URL:
- The subdomain appears in DirectAdmin’s subdomain list.
dig +short blog.example.comornslookup blog.example.comreturns the correct hosting IP.- The browser opens the intended subdomain, not the parent domain or a generic hosting page.
- The application files are in the displayed document root.
- WordPress opens at the expected URL without an extra folder suffix.
- HTTPS works and the browser does not show a certificate warning.
- Internal links, image URLs, and redirects use the new hostname consistently.
If the subdomain is a staging site, protect it with the application’s own login or another access-control method before putting unfinished content online. Do not rely on an obscure URL as security.
Troubleshooting common subdomain problems
“The subdomain does not open”
Check the DNS provider first. If the domain uses external nameservers, confirm that the A record exists there and that its value is your hosting IP. DirectAdmin’s official troubleshooting guide specifically calls out a missing subdomain A record as a common cause.
“I see the parent website”
The hostname may point to the wrong IP, or the subdomain may not have been created under the intended parent domain. Recheck the A record, the selected domain in Subdomain Management, and the document root.
“WordPress installed at the wrong URL”
In Softaculous, review Choose Installation URL and remove any value in In Directory when the site should live at the root. Also check WordPress Site Address and WordPress Address after installation.
“HTTPS shows a certificate warning”
First confirm that the subdomain resolves correctly over HTTP. SSL issuance cannot validate a hostname that still points somewhere else. After DNS is correct, check the SSL or Let’s Encrypt area in DirectAdmin and allow time for the certificate to be issued.
“I cannot find Subdomain Management”
Search the DirectAdmin interface for “subdomain” and confirm that you are at User level. Menu names vary between skins and versions. If the feature is not available, check the plan’s domain limits or ask your hosting provider to confirm the account permissions.
FAQ
What is a subdomain used for?
A subdomain separates a part of your online presence from the main domain, such as blog.example.com or shop.example.com. It is useful when that section uses a different application, team, or deployment process.
How do I create a subdomain in DirectAdmin?
Log in at User level, open Account Manager → Subdomain Management, choose Add Subdomain, enter the label, select the parent domain, and save. Then check DNS and upload files or install WordPress in the document root shown by DirectAdmin.
Does creating a subdomain create a website?
No. It creates the hostname and hosting location, but you must upload website files or install an application. You also need a public DNS record if your domain’s DNS is managed outside the hosting account.
Is a subdomain better than a subfolder for SEO?
Neither is automatically better. Google says it has no preference between subdomains and subfolders for crawling, indexing, and ranking, so choose the structure that is easiest to organise and maintain.
Can I create a subdomain for WordPress?
Yes. Create the subdomain first, wait for DNS to resolve, then install WordPress with Softaculous and select the subdomain. Keep In Directory empty when WordPress should load directly from blog.example.com.
Want to partner with us, suggest a resource or advertise on this blog? Email partnerships@hostkarle.in



