How to create a subdomain
Create a subdomain such as blog.yourdomain.co.uk in DirectAdmin, where its files go, and how SSL and DNS are handled.
On this page
A subdomain is a separate address on your domain, such as blog.yourdomain.co.uk, with its own folder. Subdomains are included with every Traxio account.
Steps
- Open Account Manager › Subdomain Management.
- Choose Add subdomain.
- Enter just the prefix —
blog, not the full address. - Save.
Where its files go
DirectAdmin creates a folder for it inside your domain’s public_html:
domains/yourdomain.co.uk/public_html/blog/Upload files there, or install an app into the subdomain with Softaculous by selecting it in the domain dropdown.
DNS
If your nameservers point to Traxio, the DNS record is created for you automatically. If your DNS is elsewhere, add an A record named blog pointing at your server IP at your DNS provider. Connecting a domain without changing nameservers (using A records)
SSL
A certificate for the new subdomain is issued automatically once its DNS resolves. It can take a little while after creation. SSL certificates for subdomains
Good uses
- A staging copy of your site: Using a subdomain as a staging site
- A separate blog, shop or help centre on a different application
- A landing page for a campaign
Removing a subdomain
Deleting it in Subdomain Management removes the subdomain, and may offer to delete its folder. Download anything you want to keep first.
Prefer to follow along?
- Add a DNS record and prove it works
Intermediate · 15 min - Back up WordPress and prove you can restore it
Intermediate · 45 min
If it doesn’t work
These guides cover the most common problems, starting with what you can see. Or browse every fix for a common problem.
- Domain not resolving: “This site can’t be reached”Fix DNS_PROBE_FINISHED_NXDOMAIN and ‘server not found’: check the domain is registered, nameservers are set, records exist and DNSSEC isn’t broken.
- DNS changes not workingYou changed a DNS record and nothing happened. How to tell whether it’s caching, the wrong DNS provider, a naming mistake or a conflicting record.
- Seeing a default page instead of your websiteWhy a placeholder or ‘coming soon’ page appears instead of the site you uploaded or installed, and how to remove it.
- Site works with www but not without (or the reverse)Fix a domain that only loads with or without www: the missing DNS record, SSL coverage and the redirect to your preferred version.
Common questions
Can I use a subdomain instead of buying another domain?
Yes, and for a project attached to an existing site it is usually the better choice. shop.yourdomain.com or docs.yourdomain.com costs nothing extra and keeps everything under one name.
How do I create a subdomain?
In DirectAdmin, open Account Manager › Subdomain Management, type the part before the dot — blog, shop, staging — and create it. The DNS record is added for you and a folder appears in your account for its files.
Subdomains are included with your hosting. Traxio doesn’t describe anything as unlimited, but for normal use you are not going to run into the ceiling.
A subdomain is the tidiest way to run a staging copy of a site, since it is genuinely separate from the live files but costs nothing extra.
Should I use a subdomain or a subfolder?
A subfolder (yourdomain.com/blog) keeps everything as one site, which is usually better for search. A subdomain (blog.yourdomain.com) is genuinely separate, which is what you want for a staging copy or an application that should not share the main site’s files.
This is a general web-hosting explanation, not specific to Traxio.
Spotted something out of date or unclear? Tell us and we’ll fix it.