Search code examples
htmlgithubgithub-pages

In Github, how can i put the index.html to open automatically in my hosted website


when i put:
https://vitorfigm.github.io/
it gives me:
"There isn't a GitHub Pages site here".
but with: https://vitorfigm.github.io/My-Web-site-template/index.html
it opens normally, how can i put this index.html to open automatically


Solution

  • If you want your site at the address https://vitorfigm.github.io/, you will have to rename your repo to the format <username>.github.io. In your case, it would be vitorfigm.github.io.

    That's the only way to accomplish it.