Home > Software engineering >  Why I am not able to see the the webpage after hosting it in github?
Why I am not able to see the the webpage after hosting it in github?

Time:06-14

Why I am not able to see the the webpage after hosting it in github? It's just showing a url with the name in same as in Readme but does't redirect anywhere.

screenshot

CodePudding user response:

You GitHub Pages is working as expected. The only file in the repository is the README, so that is the only file built on Pages.

If you wanted to build a Pages site at myportifolio.github.io, you'd have to make a new GitHub account under the username myportifolio.

CodePudding user response:

By default, github displays the "readme.md" file. And, your repo doesn't have anything to show in particular!

Try adding a dummy ".html" file and then open the website. If GitHub can't find anything to display it will display the "readme.md" file.

CodePudding user response:

Make sure you follow the steps mentioned below-

  1. index.html is your root file.
  2. You have changed your Github repo name at least one or two times,refresh the page & visit the page after a few minutes.
  • Related