Configure the repository
- Open the repository’s Settings, then Pages, and enter the custom .ch domain.
- Choose whether the root or www hostname is primary and keep GitHub’s current DNS documentation open.
- For an organisation or project site, confirm that the repository and Pages source are the intended ones.
Configure and verify DNS
- For www, add the CNAME target GitHub specifies. For an apex domain, add GitHub’s currently published A and, if desired, AAAA records.
- Remove conflicting records for the same hostname, but leave email records intact.
- Complete GitHub’s DNS check. Enable Enforce HTTPS only after the certificate is ready.
Verify the domain in your GitHub organisation or account to reduce takeover risk.