Register A FREE Custom Domain (FreeNom) with GitHub Repository (Gitub Pages)
In This Post, I will Tell you how to setup a custom domain with a repo, where you hosted your website.
Let Us Consider Some Points First
Let Us Consider Some Points First
- the repository where you hosted your website is 'repo' (www.username.github.io/repo) & the files are in the branch gh-pages.
- username' is your githueb usernam
- The domain you want to add is 'custom.com'
Let's Start
So, First of all visit your Repository. Click Settings.

Now, Under GitHub Pages Section, enter your custom domain (custom.com) and click Save.

- Visit your Domain Provider. In this Tutorial, I have chosen Freenom.com that provide free domain names.
- Now, Find Something Like, 'DNS','DNS Management','DNS Configuration',etc. where there is an option to add 'A' or 'CNAME' records.

That's it
Wait for 24-hours and your new custom domain will point to your github repo.
If someone visits username.github.io/blog, they'll be redirected to custom.com
Well Done!
Comments
Post a Comment