Custom domains
Serve your site at your own domain, with HTTPS set up for you.
Your site always works at its memcode.app address. You can also serve it at a
domain you own, like crumbbakery.com or shop.crumbbakery.com.
Add a domain
-
Open the site, click Site settings in its toolbar, and find Custom domain. It shows the two DNS records to add; type your domain to see them with its names.
-
At your DNS provider (where you bought the domain, or wherever its DNS is managed), add both records exactly as shown. For a root domain like
crumbbakery.com:Type Name Value A @the IP address shown in the app TXT _memcodethe memcode-verify=…value shown in the appFor a subdomain like
shop.crumbbakery.com:Type Name Value CNAME shopsites.memcode.appTXT _memcode.shopthe memcode-verify=…value shown in the appNames are relative to your domain, the way most DNS providers ask for them;
@means the domain itself. The first record sends visitors to memcode. The TXT record proves you control the domain. -
Back in the app, type the domain if you haven't, and click Verify. DNS changes can take a few minutes to show up; if verification doesn't pass yet, wait and try again.
Once verified, a published site starts serving at the domain.
A site serves one custom domain. To have www.crumbbakery.com work as well as
crumbbakery.com, set up a redirect from www to the root at your DNS
provider.
HTTPS
You don't need to do anything for HTTPS. When a domain verifies, memcode requests a certificate for it and renews it automatically. The Custom domain section of the site's settings shows its state:
- Being issued: usually a few minutes, sometimes up to a day after DNS points at memcode. Click Verify to refresh.
- Active: the site is served over HTTPS at your domain.
- Failed: the page shows the reason. The usual cause is the A or CNAME record missing or pointing somewhere else. Fix it and verify again.
Moving a domain between sites
Typing a domain into a site only saves it; it doesn't reserve it. The domain belongs to whichever site passes verification, because that site's TXT record is the one in your DNS. To move a domain to another site, add the new site's TXT value at your DNS provider and verify on the new site. The old site stops serving it.
Remove a domain
Click the × next to the domain. The site keeps working at its memcode.app
address. If the domain was serving the site, it stops, and its certificate is
removed. You can then delete the two DNS records.