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, setting up your pages site repository, and configuring your domain with your DNS provider.
Tips: For more information about choosing a custom domain, see:
Pick your custom domain and register it with a DNS provider. 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 is also called a domain registrar or DNS host.
Set up your pages site repository by creating and committing a CNAME file that contains your custom domain.
-
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
wwwsubdomain such aswww.example.com -
Setting up an apex domain and
wwwsubdomain such asexample.comandwww.example.com -
Setting up a custom subdomain such as
blog.example.com
-
Setting up an apex domain such as

