How do I link my domain to GitHub Pages

If your domain is pointed to our BasicDNS, PremiumDNS or FreeDNS, feel free to use these instructions to link a domain to your GitHub Pages account:

1. Sign in to your Namecheap account.

2. Select Domain List from the left sidebar and click on the Manage button next to your domain name:

3. Click on the Advanced DNS tab and find the Host records section. Then click on the Add New Record button (are you unable to edit host records?):

Here you will need to create several records for your domain:

- A record for @ pointing to
- A record for @ pointing to
- A record for @ pointing to
- A record for @ pointing to
- CNAME record for www pointing to your (the username should be replaced with your actual GitHub account username):

Once all details are inserted, save them using the Save All Changes green button.

Normally, it takes 30 minutes for newly-created records to take effect.

4. Make sure that there are no conflicting records set for the same host and remove them, if there are any. The records you need to check may be of URL Redirect (Unmasked/Masked/Permanent Redirect), A or CNAME record types.

Here is the example of the conflicting records:

Useful GitHub guides:

If you have any questions, feel free to contact our Support Team. They're available 24/7 for you.

98710 times

Need help? We're always here for you.