$ subdomains

Subdomains

Every site gets its own subdomain. It's the origin that isolates your pages from everyone else's.

Claim your slug

When you sign up, an account is provisioned with a default site and a subdomain automatically. The subdomain slug lives on the site, so each site you create gets its own. You can change a site’s slug to something memorable from its settings.

  1. Pick the site in the dashboard site switcher, then open its Settings to find its subdomain slug.
  2. Pick an available slug. That site’s pages then live at https://<slug>.hostdocs.io.
A custom slug is available on paid plans. Free accounts get an auto-generated subdomain.

How URLs map to pages

A site’s subdomain is the host; each page’s path is the rest of the URL. A page at path /pricing on slug acme is served at https://acme.hostdocs.io/pricing. The page at path / is that site’s home page.

  • The edge resolves the host to a site, then the path to a published page.
  • Unknown paths return a 404 (you can publish your own not-found page at a path).

Why each site gets its own link

Every site lives on its own web address, kept fully separate from your dashboard and from other people’s sites. That separation is what keeps each site private and secure on its own — your pages stay yours.