Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 21

Github pages does not display repositories other than the original

Solved! Go to Solution.

Hello,

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.

 

http://<your-github-username>.github.io/repository-name

 

However this does not happen, as whenever I put  a repository name the browser send the error message 404 as below:

 

404

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.

 

Thanks

 

20 Replies
Highlighted
Ground Controller Lvl 1
Message 2 of 21

Re: Github pages does not display repositories other than the original

Because u didn't have specific Directory on your Host repo

 

for example,  

- 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 😃

 

Happy Coding!

Highlighted
Ground Controller Lvl 1
Message 3 of 21

Re: Github pages does not display repositories other than the original

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? 

Highlighted
Community Manager
Message 4 of 21

Re: Github pages does not display repositories other than the original

Hi @imsree,

 

Is your repository public? If so, post a link and we can try to troubleshoot.

 

Thanks! 

Highlighted
Ground Controller Lvl 1
Message 5 of 21

Re: Github pages does not display repositories other than the original

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?

Highlighted
Ground Controller Lvl 1
Message 6 of 21

Re: Github pages does not display repositories other than the original

Highlighted
Ground Controller Lvl 1
Message 7 of 21

Re: Github pages does not display repositories other than the original

Highlighted
Solution
Pilot Lvl 1
Message 8 of 21

Re: Github pages does not display repositories other than the original

To have your repository show up at https://username.github.io/your-repository, you need to setup GitHub Pages for that repository as well.

Highlighted
Ground Controller Lvl 2
Message 9 of 21

Re: Github pages does not display repositories other than the original

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?

Highlighted
Ground Controller Lvl 1
Message 10 of 21

Re: Github pages does not display repositories other than the original

Make sure your html file is called "index.html"