Skip to main content
Take the diagnostic

Publish · Infrastructure

Domain, DNS, hosting and HTTPS

Many launch problems concern connection to the outside world, and some lack quick reversals.

Direct answer

Verify four things before declaring a domain connected: the canonical host, certificate coverage, redirects ending at one destination and absence of mixed content.

A fifth is a consequential decision: HSTS. Understand it before enabling it.

Four checks

Four checks
What you shouldHow to checkFailure consequence
Canonical hostChoose with or without www and redirect everything else in one hop.Duplicate content and signals split across hosts.
CertificateCover the canonical host and served subdomains.Browser security warnings deter visitors.
RedirectsAvoid chains: http → https → www → final.Added latency and signal loss at each hop.
Mixed contentNo resources requested over http from an https.Browsers block resources, breaking presentation.

HSTS: a decision without quick reversal

The header Strict-Transport-Security instructs browsers to visit the host only over HTTPSand thereafter browsers prevent bypassing secure-connection errorssuch as invalid certificates. A security benefit requiring careful deployment.

Two documented details matter:

  • max-age sets the seconds browsers remember the requirement. Each response carrying the header resets expiry by adding max-age to the current time, so repeated responses can keep HSTS active indefinitely.
  • includeSubDomains extends the policy to all subdomains . Any subdomain without working HTTPS becomes inaccessible for the max-age.

    KATA's HSTS criterion

    We withhold HSTS until the domain and all subdomains are verifiedthen begin with a short max-age and extend it later.

    An overlooked subdomain without HTTPS remains unreachable throughout max-agewith no browser bypass. MDN also does not specify how quickly preload removal occursso preload entry requires thorough preparation.

    Frequently asked questions

    With or without www?

    Either, but only one canonical host. Serving identical content on both without clear canonicalisation creates problems.

    Should HSTS be active on day one?

    First verify all HTTPS hosts, then use a short duration and extend after stability. Earlier activation can turn configuration errors into prolonged outages.

    What about preloading?

    Google maintains the service, used by browsers according to MDN, but outside the specification. It requires a max-age of at least one year. Consider it after launch.

    Primary sources

    Each material claim on this page is supported by one of these sources, consulted on the stated date. Bot lists, capabilities and drafts change and are checked again at each review.

    Primary sources consulted, with responsible organisation and date
    OrganisationDocumentConsulted
    MDN · MozillaStrict-Transport-Security (HSTS)2026-08-30

    Hosting configuration depends on the provider. This page cites official technology documentation rather than claiming universal hosting settings.

    Next decision

    Continue with a specific question

    Conceptual illustrations; these are not client photographs.