To set up a custom domain for your GitHub Pages site, you'll need to choose your custom domain and register it with a DNS provider, configure your domain with your DNS provider, and add your custom domain to your GitHub Pages site on GitHub.

Tips: For more information about choosing a custom domain, see:

  1. Pick a custom domain and register it with a DNS provider (if you haven't already done so). A DNS provider is a company that allows users to buy and register a unique domain name and connect that name to an IP (Internet Protocol) address by pointing your domain name to an IP address or a different domain name. A DNS provider may also be called a domain registrar or DNS host.

  2. Before configuring your custom domain with your DNS provider, add your custom domain to your GitHub Pages site. Configuring your custom domain with your DNS provider without adding your custom domain to GitHub could result in someone being able to host a site on one of your subdomains. For more information on adding your custom domain to GitHub, see "Adding or removing a custom domain for your GitHub Pages site."

  3. Set up your custom domain with your DNS provider. Our guides outline how to set up your pages custom domain with your DNS provider depending on the type of custom domain you have:

  4. Remove and then re-add your custom domain to your GitHub account to trigger the process of enabling HTTPS. For more information, see "Adding or removing a custom domain for your GitHub Pages site."

Further reading