Search code examples
githubgithub-pagesgithub-actions

How do I fix 404 error on Github Pages for a personal page I'm creating


I tried to access my GitHub page:https://adityakm24.github.io/ But it shows 404 pages not found. I looked for many tutorials online but couldn't come up with a proper solution. Adding /Index.html doesn't work either. But I am sure about adding the index.html in my repo and index.html file is in the master branch.


Solution

  • https://adityakm24.github.io/ means a User page, for a GitHub repository named <user>.github.io at, in your case, https//github.com/adityakm24/adityakm24.github.io

    Make sure you have selected a Source in the settings of that repository: it should be master by default.

    And your file must be index.html, not Index.html (it is case sensitive)