Create a subdomain

subdomain, dns, document root, staging, ssl · 0 found this helpful

A subdomain is a prefix on your own domain, such as shop.example.ca or staging.example.ca. It can run a completely separate site from your main one. Subdomains don't count against your plan's site limit.

Create one

  1. Open Account → Hosting → your site → Websites and click Add a domain.
  2. Choose A subdomain.
  3. Type only the first part, for example shop, and pick your domain under Subdomain of.
  4. Leave Folder blank and we create one, or type the folder you want.
  5. Click Add domain.
Add a domain in Websites. Choose A subdomain

If your domain uses Barbrick's nameservers, the DNS record is created for you. If your DNS is hosted elsewhere, add an A record for shop pointing at your hosting IP. See DNS records.

Allow up to an hour for DNS, and a little longer for the free SSL certificate.

Common uses

Subdomain Use
shop.example.ca A store separate from the main site
staging.example.ca A test copy. See Staging sites
app.example.ca A Node.js or Python app. See Run a Node.js app
blog.example.ca A WordPress blog

Delete a subdomain

  1. Go to Account → Hosting → your site → Websites.
  2. Click Remove next to the subdomain and confirm. Its files stay where they are.
  3. Delete its folder in Files if you no longer need it.

Important: A subdomain inside public_html is also reachable as a folder of the main domain, such as example.ca/shop.example.ca. Put it outside public_html if that matters.

If something goes wrong

  • "Server not found": DNS hasn't updated. Wait, or check the record in Account → Hosting → your site → DNS.
  • Wrong site appears: the folder is wrong. Click Change folder next to the subdomain in Websites.
  • Certificate warning: wait for AutoSSL, or see Why your free SSL hasn't been issued.

Was this helpful?

Still stuck? Ask us and we'll walk you through it.