There are three main stages to setting up a custom domain for your GitHub Pages site: choosing your custom domain and registering it with a DNS provider, adding your custom domain to your GitHub Pages site on GitHub, and configuring your domain with your DNS provider.
Tips: For more information about choosing a custom domain, see:
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.
-
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:
-
Setting up an apex domain such as
example.com
-
Setting up a
www
subdomain such aswww.example.com
-
Setting up an apex domain and
www
subdomain such asexample.com
andwww.example.com
-
Setting up a custom subdomain such as
blog.example.com
-
Setting up an apex domain such as