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

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

 

13 Replies
Ground Controller Lvl 1
Message 2 of 14

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!

Ground Controller Lvl 1
Message 3 of 14

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 14

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! 

Solution
Pilot Lvl 1
Message 5 of 14

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.

Ground Controller Lvl 1
Message 6 of 14

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

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

Copilot Lvl 2
Message 7 of 14

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

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.

Ground Controller Lvl 1
Message 8 of 14

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

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/

Community Manager
Message 9 of 14

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

Hi @LandonJames,

 

Since this is a different problem, you'd probably get better help by starting a new topic. However, there are a few topics with similar issues. Maybe this one might help?

 

Thanks!

Copilot Lvl 2
Message 10 of 14

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

@matttali09

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.

 

edit:

Sorted, in my case I was using by mistake "a" tag and href attribute instead of using "to" attribute and Link component.