Here’s how to configure at both Github and Namecheap to use your own custom subdomain (for e.g., https://my.internet.life) to serve a Github Pages website.
At Namecheap
-
Click on Manage for your matching domain.
-
Click on Advanced DNS. Under the “Host Records” section, Add New Record.
- Select “CNAME Record”, enter the following.
Host: <your subdomain only> e.g., www or my Value: <github-user-id>.github.io (NC will append a dot/period after saving) - Save the record.
Important: If you’re only using the subdomain, this is the only entry that you’ll need!
At Github
-
Select your repository. Click on ⚙️ Settings (top menu).
-
Click on Pages and enter your custom subdomain in under Custom Domain. For e.g., my.internet.life (without the http/https).
-
Wait for the DNS Check to complete. Once it’s done, a certificate will be provisioned for use and you can enable the Enforce HTTPS.