What should I do to see my github.io page content when I enter mydomain.com into browser address bar?

I have a custom .com domain and a Jekyll generated webpage at username.github.io/repositoryname. Github tells me to set a CNAME record in my repository pointing to my custom domain and if it didn't work add an A or CNAME record in my domain DNS settings. Simply I can't get it to work. Which records should I change in my DNS provider exactly?

And one last point, I prefer to see the content from github project and not to be forwarded to it's URL (I prefer users don't notice that I am using github.io).

Any insights?


It requires two things;

  1. Add a file called CNAME at the root of the project which only contains the domain name, see the docs
  2. In your DNS server, add an entry. This is done at your domain name service provider, or named/bind zone file

Follow the instructions on setting up a custom domain with GitHub pages

  • I have already read those pages and my problem is not solved yet.
    – mehdix
    Oct 13 '14 at 16:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.