-
I’ve looked for solutions however, I can’t seem to find anything that works for me. I’ve created the repository and double checked to make sure that an index.html file exists with the correct documentation, but when I open my page, I still get the 404 error (index.html file doesn’t seem to be working). Any help would be appreciated! Here’s the link to my repo: https://github.com/karenLee57/karenLee57.github.io-hangman |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments 2 replies
-
I think it’s because your repo is called karenLee57.github.io-hangman instead of karenLee57.github.io. |
Beta Was this translation helpful? Give feedback.
-
Hi, Since your main repository is already name.github.io, then the other repositories does not need that in the title. Instead, you only need what you want after the / in your web address. So if you want yourname.github.io/hangman, then the repository name has to be “hangman”. Looking at your account, you already created a repository with the name “hangman” with the same code as the repository you linked in this post. I also tried going to the url, and the reason it might not work is because in the “hangman” repository, most likely, you do not have github pages activated. To do this, you simply have to go to the “Settings” tab of your “hangman” repository, and find GitHub Pages. Then make the source to “master” or “gh-pages”, whichever one you used in karenLee7.github.io repository. Then it should work. |
Beta Was this translation helpful? Give feedback.
-
I have enabled github pages by making source as gh-pages. Still I am getting 404 error. This github repository is a private repository. |
Beta Was this translation helpful? Give feedback.
-
Check if your master has multiple repositaries… if multiple repositaries try username.github.io/repositary_name |
Beta Was this translation helpful? Give feedback.
-
Hello @karenlee57! It does look like @mpboom and @yangciou were on the right track. If your repository is We frequently see confusion around naming Pages repositories, because you can also have one user site on your account. For the user site, your URL would just be For all those coming to this topic later with a similar issue, below are some common situations where we see Check for these common issues:Publishing source and published URLThere are two kinds of GitHub Pages sites: user/organization sites, and project sites. In most ways the two are identical, but there are differences in how and where they are published. Every GitHub account is entitled to a single user/organization site, located in a repository called Project sites, on the other hand, can be enabled on any repository, and are accessible at Solution: Verify the publishing source and published URL from your repository’s settings tabDouble check that you are using the correct URL by visiting your repository’s Settings, and scrolling down to the GitHub Pages section. You should see the URL where your site is published. Here, you can also verify that a publishing source is set, and that it matches your expectations. No valid default landing page (beware case sensitivity)GitHub Pages is designed to serve one of a specific set of files as a default landing page for your site. The preferred files to be served are Note that GitHub Pages is case-sensitive, so Solution: Create one of these filesCreate a file named Repository is a private repo on a free planGitHub Pages in private repositories is only available on the following plans: GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. Sometimes people switch their repository’s visibility to private. This will unpublish the Pages site, and switching back to public will not automatically re-publish. Solution: Verify planDouble check that your plan supports Pages in private repositories. If it does not, make sure the repository is public, and then push a commit to build the site again. I just published, but am still getting a 404 errorIt’s possible that you just published the project or published a new commit but aren’t seeing any new updates. Solution: Allow a few minutesIt can take up to 10 minutes for GitHub Pages to build and publish your site. Allow some time for the build to complete, and also clear your browser’s cache. Additional Resources:If you are here looking for a solution to your About GitHub Pages: Configuring a publishing source for your GitHub Pages site: |
Beta Was this translation helpful? Give feedback.
-
hi, i am getting an error while hosting my repository on git hub pages. i have followed all the steps properly while hosting on git hub pages but still the error is coming. I have used the initialized readme option. |
Beta Was this translation helpful? Give feedback.
-
I have another problem like this. When I use links, my 404 page shows up. Link: https://javascriptlearner815.github.io/ |
Beta Was this translation helpful? Give feedback.
-
Name change. That’s why. |
Beta Was this translation helpful? Give feedback.
-
We have expertise to solve the problem that you are asking why don’t you hire us to solve your problem we are website development company |
Beta Was this translation helpful? Give feedback.
-
Can anyone smarter than me help me with this? This link doesn’t work and I don’t know why. |
Beta Was this translation helpful? Give feedback.
-
Cattail411:
it has a folder that contains the default |
Beta Was this translation helpful? Give feedback.
-
https://github.com/dipali-31/dipali-31.github.io.git my https it is showing a error of 404 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
https://github.com/RedaChahid/ |
Beta Was this translation helpful? Give feedback.
Hello @karenlee57! It does look like @mpboom and @yangciou were on the right track. If your repository is
karenLee57/karenLee57.github.io-hangman
, then the URL for your page ishttps://karenLee57.github.io/karenLee57.github.io-hangman
. That is a mouthful, so I would recommend if you want a project site for this page, to name the repository something shorter. Your URL for project sites will always behttps://karenLee57.github.io/<repository name>
.We frequently see confusion around naming Pages repositories, because you can also have one user site on your account. For the user site, your URL would just be
https://karenLee57.github.io
. However, to activate your user site, you must name your…