![]() Name the file as CNAME without any extension. You will see a blank space where you can type in anything. Go to the repository where you have hosted your website and click on New File. Step 1: Adding CNAME file to the gh-pages branch. I have already configured custom domain which you can access using this link: truejewels.in I will be using this domain for the test website whose current URL is. Since I thought of making this tutorial as simple as possible, I have kept the website to a bare minimum. This is a test website that has nothing but a heading and background color. Keep this test repository open because I will be discussing other aspects of the repository. I have a website to which I want to configure custom domain using GitHub. Once you have purchased a domain name, go on to the next steps. It is a good idea to stay away from dictionary words because almost all of them are either taken or hard to rank in search engines. A unique name is a good candidate for better ranking. It would cost you around $10 a year by the time this article being written.Ĭhoose a short, easy-to-remember domain which may not have a number in it. You have to purchase a domain from any registrar like GoDaddy, NamesCheap etc. ![]() If you do not have a website yet, then refer to my post on How to create a website and host it on github pages to learn how you can create a simple website on Github Pages. So how perform this change? Prerequisites A website hosted on Github PagesĬreating a website or uploading a pre-built website to github pages has become very easy after GIthub released drag and drop upload option to its repositories. You may have a website hosted on Github Pages which has a URL that looks similar to. I will explain in simple steps, how to add a custom domain name to Github Pages website. Maybe you can recover more than what you have spent on it.Īdding a custom domain to a GitHub hosted website is fairly easy. If you have a good domain name in hand, you can always sell it to somebody who wants it. I own 12 domains by the time of writing this article. Step 2: Adding A record in the DNS Zone Records.Step 1: Adding CNAME file to the gh-pages branch.So buy a domain name, it doesn’t cost much and it can help you build a brand in the long run. Search engines always a domain name rather a free subdomain obtained from a third-party website. But having a unique domain name adds credibility to your product or service. Having a third-party domain like is fine. You can also use this method for Jekyll blogs. Learn how to add a custom domain to github pages. Once these records have been created, allow at least 4-24 hours for the changes to propagate across the web.By using a custom domain, you can change ugly looking URL into your own URL. If your domain is not pointing to InMotion Hosting, you should be able to add DNS records at your registrar. Check out our full tutorial on adding an A Record for cPanel.We will be pointing our domain to GitHub’s IP addresses. This is like adding a physical address to your name in a phonebook. Now that we have added the necessary domain information to our GitHub account, we are going to create custom domain records in cPanel. ![]() Add A Records to Point Your Domain to GitHub Below, we’ll show how to add an A record in your cPanel that will point to GitHub. Add your custom domain under the Custom domain section and click SaveĪ custom domain has now been added to your repository. ![]() This will set up a record there, but the change will not take effect until we add the necessary DNS records to cPanel. Now, we will need to first add our custom domain to our GitHub repository. If you need an SSL for your site, you should consider using a complete hosting plan. You will not be able to use SSL with on this domain.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |