Economicalhost · Knowledge Base
Knowledge Base › Domains & DNS › How to Set Up a Wildcard Subdomain
Domains & DNS

How to Set Up a Wildcard Subdomain

A wildcard subdomain (*.yourdomain.com) makes every possible subdomain resolve to one place — useful for apps that generate subdomains per user.

Step-by-step

  1. Open Domains → Domains and click Create a New Domain.
  2. Enter the subdomain as *.yourdomain.com — the asterisk is the wildcard.
  3. Choose the document root where all wildcard requests should be served.
  4. Submit. Any subdomain not otherwise defined now resolves to that location.
  5. Note SSL coverage. Free AutoSSL covers specific hostnames; a true wildcard certificate may be needed for https on arbitrary subdomains — ask EconomicalHost support.
  6. Test with a couple of random subdomains to confirm they all load the intended location.

💡 Good to know

  • Specific subdomains you define separately take priority over the wildcard.
  • Wildcard HTTPS for arbitrary subdomains needs a wildcard SSL certificate — discuss options with support.
  • Wildcards suit multi-tenant apps; for a few fixed subdomains, create them individually.