Custom domains are great! They allow us to connect to our users in a much nicer way. If you are hosting your project with GitHub, I am sure that you aren’t too fond of the username.github.io/repository URL that they give you.
“USE A CUSTOM DOMAIN TO BETTER CONNECT WITH YOUR USERS.”So you want to know how to use a custom Apex domain with your GitHub hosted project. Luckily this is a fairly simple task. Before we get started, you are obviously going to need a domain name and your repository on GitHub. There are a few main steps that we need to complete — let’s get it done.
For the lazy people who don't want to read.
Hey look at that, we are almost done. Just in case you are curious or you need to know if your custom domain is supported at GitHub, you can read, “About supported custom domains”.
That’s it, you’re done! I bet you weren’t expecting it to be that easy. If your custom domain is not working yet, it could take a few minutes, but go ahead and add a file named “CNAME” to the root of your repository and add these two lines replacing “yourdomain” with your actual domain name.
yourdomain.com www.yourdomain.com
If all else fails and it is still not working, read “Adding or removing a custom domain for your GitHub Pages site“ and see if GitHub can help you figure it out in their spider web of custom domain setup instructions.
Finally, if you see something in this post that is outdated or no longer working, tweet me so I can fix it for you :)
Should I be writing? That is a question that I have asked myself time and time again.
I have a problem. Whenever I start a project or whenever I am informed of one that people wish to bring me on board with, my addiction kicks in.
If you are a good web developer and you care about your users, you should have SSL on your website.