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.

Guide2 min readLast updated
On this page
  1. Steps
  2. Where its files go
  3. DNS
  4. SSL
  5. Good uses
  6. Removing a subdomain
  7. If it doesn’t work
  8. Common questions

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

  1. Open Account Manager › Subdomain Management.
  2. Choose Add subdomain.
  3. Enter just the prefix — blog, not the full address.
  4. 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

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?

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.

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.

Keep going