Setting A Custom Domain Name On GitHub Pages


WOW! I can’t believe I just spent two days on the simplest error with getting my Github pages to use a custom domain name.

First things first, here is the official documentation from Namecheap.

I followed all of the instructions including adding the records like so.

dns-settings

But still I was getting a 404.

Then I found this Stack Overflow topic and it hit me. I had the file name cname lowercased in my gh-pages repo.

Simply changing it to uppercase fixed my problem.

So make sure the file that has your cname is uppercased.

You might also like...

From Beginner To Pro: 2 Week Facebook Marketing Course

I've spent over $20k in Facebook Ads. I will teach you everything I know about Facebook marketing. Sign up now for highly actionable and detailed lessons that are also 100% FREE! Drop your email below and lets get started.

Spam sucks, unsub whenever you'd like.