Skip to content

Domain Types Explained

Hostgrid supports three types of custom domains:

  • Root domains
  • Subdomains
  • Wildcard domains

Each serves a different purpose, and choosing the right one depends on how your application is structured.

Understanding these domain types will help you design a flexible routing strategy while making the most of Hostgrid’s domain management and automatic SSL.


Domain TypeExampleBest For
Root Domainexample.comCustomer websites, stores, landing pages
Subdomainapp.example.comApplications, portals, blogs, staging environments
Wildcard Domain*.example.comMulti-tenant SaaS platforms, dynamic subdomains

A root domain (also called an apex domain or naked domain) is the primary domain without any prefixes.

Examples:

example.com
company.io
myshop.co.uk

Unlike subdomains, a root domain contains only the registered domain name.

Many businesses prefer using root domains because they are shorter, easier to remember, and often represent the primary website.

Root domains are commonly used for:

  • Company websites
  • Marketing sites
  • Online stores
  • Personal portfolios
  • Customer-owned websites

For example, a website builder might allow customers to connect domains such as:

bakery.com
photography.io
myrestaurant.net

instead of hosting them on URLs like:

customer.websitebuilder.com

Using a custom root domain provides a more professional experience while allowing customers to own their online identity.


A subdomain is a child of a root domain.

Examples:

blog.example.com
help.example.com
app.example.com
portal.company.com

Subdomains are commonly used to organize different sections of a website or application while keeping everything under the same brand.

Unlike root domains, subdomains can be created freely without registering additional domains.

Subdomains work well for separating services or environments.

Examples include:

  • Help centers (help.example.com)
  • Blogs (blog.example.com)
  • Customer dashboards (app.example.com)
  • API endpoints (api.example.com)
  • Documentation (docs.example.com)
  • Development environments (staging.example.com)
  • Internal tools (admin.example.com)

Many SaaS platforms assign every customer their own subdomain.

For example:

alice.platform.com
bob.platform.com
charlie.platform.com

Each subdomain routes users to their own account while sharing the same application.

This approach also allows infrastructure to evolve over time. For example, different groups of customers can be routed to different regions or deployments without changing the customer-facing URL.


A wildcard domain matches every subdomain beneath a root domain.

Instead of configuring individual subdomains, a wildcard uses an asterisk (*).

Example:

*.example.com

This single domain matches requests such as:

alice.example.com
bob.example.com
customer-123.example.com
anything.example.com

without creating separate domain entries for each one.

Wildcard domains are especially useful when subdomains are created dynamically.


Wildcard domains are ideal when you don’t know every subdomain in advance.

Common examples include:

  • Customer workspaces
  • User-generated sites
  • Preview deployments
  • Temporary environments
  • Dynamic application routing

Instead of provisioning every subdomain individually, one wildcard domain can handle them all.


Wildcard domains also allow applications to receive requests for subdomains that have not been explicitly configured.

For example:

*.example.com

can receive requests for:

alice.example.com
bob.example.com
unknown.example.com

Your upstream application can then decide how each request should be handled.

This is particularly useful for platforms where users can create their own workspaces, websites, or applications.


Wildcard domains can also use a wildcard SSL certificate.

Rather than issuing certificates for every individual subdomain, a single certificate secures all matching subdomains.

For example, one certificate for:

*.example.com

covers:

alice.example.com
bob.example.com
portal.example.com

A wildcard certificate can simplify domain management by:

  • Reducing the number of certificates to manage
  • Securing newly created subdomains automatically
  • Making large-scale deployments easier to maintain

This approach is especially useful for platforms managing hundreds or thousands of customer subdomains.


Choose the domain type that best matches your application.

  • Customers connect their own website.
  • You are building a website or e-commerce platform.
  • Each customer owns their own domain.

Examples:

customer.com
myshop.co.uk
restaurant.net

  • Different services share the same brand.
  • You need separate environments.
  • Each customer receives a predictable hostname.

Examples:

app.example.com
help.example.com
staging.example.com

  • Subdomains are created dynamically.
  • You have many customers or workspaces.
  • You don’t want to configure every subdomain individually.

Examples:

*.example.com

FeatureRoot DomainSubdomainWildcard Domain
Customer-owned websites
Application portals
Dynamic subdomains
One configuration for many subdomains
Common for SaaS platforms⚠️
Common for website builders⚠️⚠️

  • Every Hostgrid domain points to exactly one upstream.
  • One upstream can serve many domains, regardless of domain type.
  • Automatic SSL is available after domain verification.
  • Hostgrid forwards requests to your upstream but does not modify your application’s content or branding.