Skip to content

Publishing and domains ​

Every published microsite is intended to have a simple permanent link. Its owner can connect a custom domain while keeping previously shared links working.

This is Bonsite's accepted direction. The section describes target behavior and architecture; automatic address allocation and customer-domain connections still need implementation. Publishing this documentation does not mean the domain service is already live.

Platform and customer-site addresses ​

Customer sites use a separate registrable domain. The marketing site, workspace and authentication stay on the product's primary domain.

PurposeExample address
Bonsite home pagebonsite.ai
Owner's workspaceapp.bonsite.ai
Automatic microsite addressk7m2x9p4.bonsite.site
Friendly name — later stagesummer-offer.bonsite.site
Customer subdomainoffer.company.com
Custom root domainmyproduct.com

All domains in this table illustrate the design. Availability, ownership and the final publishing-domain name are unconfirmed.

We do not place customer sites on the primary Bonsite domain at paths such as /s/identifier. Nor do we use identifier.bonsite.ai as the primary customer-content address: it gets a separate domain.

On first publication, a site receives a random public identifier. An address such as k7m2x9p4.bonsite.site can immediately be copied into a message, email or advertisement.

  • The identifier belongs to the site, not its content version. Edits, republication and rollback do not change it.
  • It is a random ID, not an HTML hash, sequential number or URL fragment after #.
  • Length and alphabet are chosen during implementation with uniqueness checks. The eight-character example is not a length requirement.
  • Pages use ordinary paths: k7m2x9p4.bonsite.site/about, /contact.
  • After site deletion, the address is not reassigned to another owner. Old links must not unexpectedly open someone else's content.
  • The workspace has a clear “Copy link” button.

A random address does not make a site private. Restricted previews need separate access control, such as an invitation or password. Private previews are not published by default.

Connecting a custom domain ​

In “Domains”, the owner enters the desired address. Bonsite shows the required DNS records, verifies ownership and prepares HTTPS.

Connection journey:

  1. The owner adds a domain to a specific microsite.
  2. Bonsite supplies records for ownership verification and traffic routing.
  3. The owner adds them at their DNS provider.
  4. Bonsite verifies the domain and waits for certificate readiness.
  5. After successful checks, the address becomes active and can be selected as primary.

The interface distinguishes “Awaiting verification”, “Setting up HTTPS”, “Connected” and “Action needed”. A failed check shows a specific reason and next step. Until the custom domain is ready, the automatic link keeps working.

Subdomains and www ​

For offer.company.com and www.company.com, the main approach is a CNAME to Bonsite's connection address. The exact record value is supplied in the workspace; users should not guess it from documentation examples.

Root domain ​

company.com is also in target scope. Not every DNS provider supports a regular CNAME at the zone apex. CNAME flattening/ALIAS or a separate apex-proxying mechanism is needed.

Choose and verify a supported method for the first implementation before promising compatibility with every DNS provider. If direct apex connection is unavailable, offer www.company.com with an HTTPS redirect from the root at a provider that supports it. Apex-proxying capabilities and costs need separate verification. Cloudflare documentation.

One primary address ​

Until a custom domain is connected, the automatic subdomain is primary. After successful connection, the owner can make the custom domain primary.

The platform link then returns a permanent 301 or 308 redirect to that address. Path and query parameters are preserved: /contact?utm_source=email reaches the same page on the custom domain. Unknown pages return a proper 404.

Canonical URLs, sitemap, internal absolute links and messenger preview metadata use the primary address. This prevents the same publication from existing as competing copies. Redirects and canonical signals help search engines identify the preferred URL. Google documentation.

Explicitly disconnecting a custom domain makes the platform link primary again and removes the redirect. Remove the site's domain binding and corresponding provider configuration. Reconnection requires renewed ownership verification. A temporary domain failure must not change the primary link automatically.

Isolation and reputation ​

A separate publishing domain separates customer HTML and scripts from the Bonsite workspace. Customer sites do not receive platform authentication cookies. Each microsite has its own origin; internal cookies do not extend to a shared parent domain.

Subdomains alone do not fully isolate cookies: the Domain attribute can spread cookies across sibling subdomains. Workspace authentication must therefore not share cookies with customer content. Publishing also requires testing cookie, script and embedded-preview boundaries between customer sites. MDN documentation.

A separate domain does not guarantee protection from SEO or reputational consequences of abuse. Site reporting, phishing and spam blocking, and bulk-publication limits are needed. Subdomains must not be treated as a way around search-engine rules. Google guidance for user-content platforms.

Drafts and demos are not indexed. Indexing public publications is a separate setting; a short link alone does not imply consent to appear in search. noindex does not protect access or replace private-preview authentication.

Technical design ​

The application and publication storage may remain on DigitalOcean. Cloudflare for SaaS is the target mechanism for customer-domain connection and certificates. It routes customer-domain requests to the platform's shared server and manages HTTPS. Cloudflare documentation.

text
Automatic subdomain ─┐
                     ├─ HTTPS / Cloudflare → publication server → microsite version
Custom domain ───────┘

Bonsite workspace → site, publication and verified-domain settings

Subdomains of the publishing domain need wildcard DNS and corresponding HTTPS; customer domains are registered and verified separately. One router resolves the site through a verified hostname-to-site-ID binding. A separate DigitalOcean application deployment per microsite is unnecessary.

Implementation requirements:

  • Unique binding of a normalized domain to one site, with ownership verified before activation.
  • Unknown or deleted hostnames never open a random default site.
  • Cache separated by domain, site and publication version: one customer's content is not served to another.
  • Publication switches the entire active version; the previous version remains available for rollback.
  • Automatic certificate renewal and clear DNS/HTTPS error handling.
  • A published site does not depend on agent availability while being viewed.

Choosing Cloudflare does not mean integration is connected or compatible with the current DO configuration without testing. During implementation, check origin, DNS, certificate issuance, plan limits and the complete flow on a test customer domain.

First-version scope ​

  1. An automatic permanent address on a separate publishing domain.
  2. Copying the link from the workspace.
  3. One custom hostname per microsite with ownership verification.
  4. Automatic HTTPS and connection states.
  5. Primary-address selection, redirects and consistent canonical/sitemap URLs.
  6. Safe domain disconnection and unpublishing.

Friendly names, multiple domain aliases and bulk domain management are later stages. For a company.com / www.company.com pair, the first version connects one address; the second address's redirect is configured separately.

Readiness requires an end-to-end check: publish a site, open the short link on a phone, connect a test domain, check HTTPS and a nested-page redirect, update without changing the link, and disconnect the domain without transferring it to another owner.

Bonsite — small websites for your big ideas.