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.

1 Like

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.

@thomasshaped Hi! One additional question, your suggestion does not work actually. I have also the same problem https://my-github-repository.github.io/my-desired-name. What you suggesting renaming the repository as my-desired-name instead of my-desired-name.io. but that does not make htps://my-desired-name.github.io. Could you suggest anything else?

1 Like

Hi @bipul-mohanto! GitHub only provides you with a single URL using your username, do in your case your URL would be https://bipul-mohanto.github.io/. The only way to change this is to change your account username.

1 Like

Hi @thomasshaped , thanks for replying. I have already understood this, but that creates another consecutive question which I still looking for the answer, if https://bipul-mohanto.github.io/ is my github page, then while I am creating/uploading files for modifying the page, I definitely need to create a new repository. In that case, wouldn’t be the url https://bipul-mohanto.github.io/bmohanto ? here
bmohanto is the repository which I use to upload and modify my web-page.

nope,

on GitHub, you should have a repo named [[yourusername].github.io] that contains all the files for the site,

I checked your repos but you don’t have one.

for example me, this is my site:

https://xdvrx1.github.io/

the repo on GitHub is

https://github.com/xdvrx1/xdvrx1.github.io

and when I want to update my site, I’ll go at this repo,

1 Like

Wow, that has solved my problem (https://bipul-mohanto.github.io/). I actually kept my files as private, that is why you could not see the files. However, the url conflict has been solved. I guess I need to work a bit more on the _config.yml file now. Thanks a lot.

1 Like