Github page url is https://username.github.io/username.github.io"

I followed the exact same steps in the documentation to set up a new GitHub Page.

Everything worked perfectly, but I then deleted my repositories due to some difficulties installing the jekyll theme and wanted to start from scratch, and created a new page (big mistake on my part).

Then, 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://username.github.io/username.github.io" as opposed to the expected username.github.io.

changing the username changes it into “http:/username.github.io/username”

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 < user >.github.io/something.

Restoring the deleted repositories did not solve this problem either… I got so frustrated I created another new one, but this didn’t work either.

How do I get it to show up as https:/username.github.io and not have any subdirectories? I just want to get it back to the default.

Hi @Zzlatan, welcome to the GitHub Support Community! GitHub only provides a single github.io URL per account, using the account username. In your case yours would be Zzlatan.github.io.

It looks like you’ve named your repository zacharykatsnelson.github.io so your site will be online at https://Zzlatan.github.io/zacharykatsnelson.github.io/.

If you’d like to host your site at https://Zzlatan.github.io/ then you’ll need to rename your repository to Zzlatan.github.io.

If you’d like to host your site at https://zacharykatsnelson.github.io/ then you’ll need to change your GitHub username to zacharykatsnelson.