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?
Is your repository public? If so, post a link and we can try to troubleshoot.
To have your repository show up at https://username.github.io/your-repository, you need to setup GitHub Pages for that repository as well.
so i have a problem that the index page is showing up but not the other two pages.
my index.html shows up fine and when i build it with my code editor the other two pages work, but not on the github.io site that was created.
Sorry just to add to your issue as well but when my page is deployed it only shows the html portion and not the css portion https://landonjames.github.io/excursion/
I came across same issue, have you found a solution?
I got all my sub-pages working except particular one.
Obviously, locally everything works fine.
Sorted, in my case I was using by mistake "a" tag and href attribute instead of using "to" attribute and Link component.