Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 4

New GitHub page shows username.github.io/repository.github.io... Confused

I just followed the exact same steps here to set up a new GitHub Page: https://pages.github.com

 

However, it's doing something weird. For example, let's say I login to GitHub.com using a username of "RandomUsername", and then I go to create a new repository called MyRepository.github.io. When I go to GitHub pages in the settings and use the master branch from the dropdown (to select where the content will be stored), my GitHub Page URL turns into https://RandomUsername.github.io/MyRepository.github.io" as opposed to the expected https://MyRepository.github.io

 

Am I doing this correctly or is the documentation a little off? According to the documentation, whatever you specify for the repository name, aka <user>.github.io, that will be the URL for your GitHub page, but that's not the case. Instead, the URL becomes something.github.io/<user>.github.io.

 

Confusing. Can someone help me here?

 

Do I need to create an entirely new GitHub account in order for it to show up as https://<username>github.io and not have any subdirectory called username.github.io instead?

 

EDIT: Nevermind. Just realized I had to set up a brand new GitHub pages account to accomplish what I was trying to do. Not sure how to delete posts, so figured I'd just add my resolution here for anyone else that may get slightly confused.

3 Replies
Highlighted
Community Manager
Message 2 of 4

Re: New GitHub page shows username.github.io/repository.github.io... Confused

Hi @altjx, Thanks a lot for coming back and sharing your fix, this post might help another user. Thank you!


I hope this helps,
Andrea

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Highlighted
Ground Controller Lvl 1
Message 3 of 4

Re: New GitHub page shows username.github.io/repository.github.io... Confused

I try many times. I always have the same problem. The link of my website is  "https://username.github.io/MyRepositoryName" rather than "https://username.github.io". How can I get the latter one?

Copilot Lvl 2
Message 4 of 4

Re: New GitHub page shows username.github.io/repository.github.io... Confused

I have the exact same issue. I am getting started with Github and pretty confused.

Steps followed:

1. Create new Repo -> username.gitbhub.io
2. Create index.html with some content in the master branch.
3. Repo Settings -> Master Branch as Github Pages setting

 

Site shows published as https://myaccountname.github.io/username.github.io