A domain of your own

Instead of an address like your-name.github.io/clear-accounts, a site can live at a domain of your own, such as clearaccounts.com. You buy the domain from a registrar, write it in the site's settings, publish, and point the domain at GitHub with a few DNS records. This works on GitHub Pages; on Cloudflare Pages SeedPage does not set up a domain of your own yet.

Write it in Settings

Settings, General: Address where it is published holding https://clearaccounts.com, and Save

Number

Part

What it does

1

Address where it is published

Your domain, with https:// in front: https://clearaccounts.com, or https://www.clearaccounts.com, or a subdomain such as https://shop.clearaccounts.com.

2

Save

Keeps it. The next publish uses it.

The address is the domain alone. A path after it, such as https://example.com/shop, is not possible: GitHub Pages shows a domain's site at its root, and the publish stops and says so.

Publish

Publish as usual. SeedPage keeps your domain as the site's address, tells GitHub about it, and at the end shows the DNS records to create:

The end of a publish with a domain: Published, and the last step: four A records for clearaccounts.com to GitHub's addresses and a CNAME record for www to your-name.github.io

Number

Part

What it does

1

Published

The site is on GitHub, waiting for the domain to point at it.

2

The last step

The records to create at your domain's DNS. They stay in the panel until you close it.

The records

What to create depends on the kind of address:

  • A domain itself (clearaccounts.com): four A records for clearaccounts.com, to 185.199.108.153, 185.199.109.153, 185.199.110.153 and 185.199.111.153, and a CNAME record for www to your-name.github.io. Visitors who type www are sent to the domain.
  • A subdomain (www.clearaccounts.com, shop.clearaccounts.com): one CNAME record for it, to your-name.github.io.

your-name is your GitHub account, or the organization the site's repositories are in. Remove any other A, AAAA or CNAME record for the same name first: a parking page from the registrar is a common one.

At Cloudflare

With the domain's DNS at Cloudflare: open the domain in your Cloudflare account, then DNS, Records, and Add record for each one. Set Proxy status to DNS only, the grey cloud, until the site opens with https at its domain; turning the proxy on earlier stops GitHub from making the certificate.

At other providers

Every registrar and DNS provider has a page of DNS records, called DNS, DNS zone or Name servers. Add the same records there. The name field is often written without the domain: @ for the domain itself, www for www.

Waiting, and HTTPS

New records take from a few minutes to a few hours to reach everyone. Once they do, GitHub makes a free certificate for the domain, so the site opens with https. That can take up to a day. SeedPage asks GitHub to always use https at each publish; if the site still opens without it once the certificate is ready, publish again.

If the site does not open after a day, check the records with a DNS lookup tool, and look in the repository of the pages on GitHub, Settings, Pages: GitHub says there what it finds wrong with the domain.

When something goes wrong

  • "On GitHub Pages your own domain shows the site at its root": the address has a path. Write the domain alone in Settings.
  • "GitHub did not accept the domain": GitHub's own reason follows. Often the domain is already used by another GitHub Pages site, or is not a valid name.