I am new to git, github and github pages.
I did set up GitHub pages and got my main link http://<your-github-sername>.github.io.
It is my understanding that if I add a repository name at the end of the link, the content of the repository should be displayed on the browser.
However this does not happen, as whenever I put a repository name the browser send the error message 404 as below:
File not found
The site configured at this address does not contain the requested file.
If this is your site, make sure that the filename case matches the URL.
For root URLs (like http://example.com/) you must provide an index.html file.
I put my new_repository into the folder where my username.github.io is located, I did commit and put the changes of my new repository and still I am not able to make it display my website.
Could someone help me please.
Solved! Solved! Go to Solution.
Because u didn't have specific Directory on your Host repo
- you need to make a repo like USERNAME.github.io and its URL should be like ( https://github.com/USERNAME/USERNAME.github.io )
- under the "USERNAME.github.io" u need to make subfolder to access it, if u try to access https://github.com/USERNAME/XYZ-project then u could not access because the "XYZ-project" is not in your host repository u need to make sub-folder for that on your host for it 1st like (https://github.com/USERNAME/USERNAME.github.io/XYZ-project)
- make sure everything is on the same branch "master"
that's it, now good to go
for more information plz visit https://pages.github.com/
Hope these help! Can't wait to see host page 😃
Hey i did created new repo and also created a new folder locally inside my main repo folder and my index file name is index.html. But i still i'm getting 404 page not found. Am i missing something?
Hello, Top of the day to you! How are you and everyone at your end?
I hope you are all fine, and you are not affected with this pandemic. II am having some issues publishing my site on Github. Can i send the link down so you help me?
To have your repository show up at https://username.github.io/your-repository, you need to setup GitHub Pages for that repository as well.
Still not working. I have it setup i.e. https://github.com/the22ndmeusoc/the22ndmeusoc.github.io/tree/master/squads/xml there is no index.html or anything like that. There is only squad.xml. That's by design. The site is not published, only for the default. Also, AFAIK, there is a requirement for "insecure" http, so to speak, so when I configure as such, I do not see the site being published. Do I need to register a domain name or something like that?