Profile page domain

I created repo as x.github.io, which I can access fine. I created another repo y.github.io in the same way but I am getting HTTP 404.

Following this doc, published the page but now the webpage is x.github.io/y.github.io. Any idea why like this not y.github.io?

Also couple more questions

  1. Why I had to publish the 2nd repo and the first one was not required?
  2. For both the repos, I did not create any branch but x.github.io have a master branch and y.github.io has main branch. Any idea?

Ok I guess I found the answer to my first question from here i.e. can only create one site with username. In this case x was indeed my user name. For rest of the site, have to create custom domain.

I guess that also answer my next question Why I had to publish the 2nd repo and the first one was not required?, since this require to define a custom domain name I am guessing. Would love to get a confirmation

My last question still remains unanswered though

GitHub Pages allows you to have one website for you personal account, and one website for each repository. URLs for each website are determined by you username and repository name, you can’t change that unless you have your custom domain which you connect to a GH Pages website, via the configuration of the specific repository.

1 Like