getting 404 github error when trying to make public page - github

I keep getting this error. I followed the instructions exactly.
404 There isn't a GitHub Pages site here. If you're trying to publish
one, read the full documentation to learn how to set up GitHub Pages
for your repository, organization, or user account.
I am trying to upload a simple index.html page and keep getting this error
for reference here is the page https://github.com/xrpgiftsgive/xrpgiftsgive.github.io
I downloaded the desktop client.

For testing, try and push an index.md file, as seen in "Creating your site"
In the root of the publishing source, create a new file called index.md that contains the content you want to display on the main page of your site.
Check the settings associating to your repository, to verify its publication source (which should be master for a user GitHub pages site)

Related

Why does GitHub pages now show a 404 error?

Thanks for taking the time to read my first question.
I created an hosted a repo on GitHub assigned it to my name and committed and yesterday I could see the website.
Today it seems to have gone offline with no error and with no other change.
Any help would be massively appreciated.
Site: mylokaye.github.io
Domain: mylokaye.tech
Error:
404
There isn't a GitHub Pages site here.
If you're trying to publish one, read the full documentation to learn how to set up GitHub Pages for your repository, organization, or user account.
GitHub Status — #githubstatus
Solution
One possible solution is to ensure there is a file called CNAME on the branch your GitHub Pages site is served from, containing your custom domain name.
Root cause
When you configure a custom domain in the repo's Pages settings, GitHub generates a CNAME file and commits this to the branch or folder the site is being served from. If this file is removed, you will see a 404 page instead of your site and the custom domain configuration will be blank again.
If you are using something like Docusaurus then when a content change is made and the static site is rebuilt, the CNAME file was being wiped out.
Viewing the commit history for the branch my site was being served from (gh-pages) I saw commits which added a CNAME file to the repo root corresponding to when I configured the custom domain in the repo's Pages settings.
In the screenshot above, the commit on 2nd Jan was generated by GitHub automatically when I configured the custom domain. The commit on 3rd Jan was Docusaurus publishing a content change, which removed the CNAME file and my site returned a 404 on the custom domain url. Same thing happened on 5th Jan when I reconfigured the site and then made a content change and the GitHub Action publishing my site generated the deploy commit which removed the CNAME file again.
Fix for Docusaurus v2
My site is generated by <Docusaurus.io> and I'd missed this in the documentation where it says to create a static file in the /static folder which will be copied over to the published branch. The file contents should be a single line of text with the custom domain name eg. buildthethingright.com
For other site generators there will probably be different ways to ensure a CNAME file with a custom domain remains on the GitHub Pages branch. Note there was a different process for Docusaurus v1, so check your static site generator docs for how to do this for you.
The typical trigger for an error 404 message is when website content has been removed or moved to another URL. There are also other reasons why an error message could appear. These include:
The URL or its content (such as files or images) was either deleted or moved (without adjusting any internal links accordingly).
The URL was written incorrectly (during the creation process or a redesign), linked incorrectly, or typed into the browser incorrectly.
The server responsible for the website is not running or the connection is broken.
The requested domain name can’t be converted to an IP by the domain name system (DNS).
The entered domain name doesn’t exist (anymore).
Check this website, if you want more answer:
https://en.m.wikipedia.org/wiki/HTTP_404#Soft_404

Why I am not able to see the the webpage after hosting it in github?

Why I am not able to see the the webpage after hosting it in github? It's just showing a url with the name in same as in Readme but does't redirect
anywhere.
screenshot
You GitHub Pages is working as expected. The only file in the repository is the README, so that is the only file built on Pages.
If you wanted to build a Pages site at myportifolio.github.io, you'd have to make a new GitHub account under the username myportifolio.
By default, github displays the "readme.md" file.
And, your repo doesn't have anything to show in particular!
Try adding a dummy ".html" file and then open the website. If GitHub can't find anything to display it will display the "readme.md" file.
Make sure you follow the steps mentioned below-
index.html is your root file.
You have changed your Github repo name at least one or two times,refresh the page & visit the page after a few minutes.

Github. The site configured at this address does not contain the requested file

I have a problem on my files.
Github say "Your site is published at https://evil-dave-dev.github.io/testHTML/"
But when i try it, it display a 404 error and "The site configured at this address does not contain the requested file".
My pages site is currently being built from the main branch.config github page
The home page shows a file called 'index.html', which is not present in your GitHub repository. At first create a HTML file named index.html and it will work as your home page.
 But you have a file named 'test.html' that is reachable on
https://evil-dave-dev.github.io/testHTML/test.html or https://evil-dave-dev.github.io/testHTML/test

username.github.io pages not published as github pages

I have Created the repository named as username.github.io and tried to access the same URL in browser but i'm getting 404 error.
Checked in repository settings -> Under Github Pages Section, But it was not showing the message "your site is published at username.github.io"
Apart from this, is there anything i have to do...
Screenshot:
Actual URL: https://username.github.io
To create a GitHub Pages site for your own username (i.e. a personal website and not a website for a repository), you need to replace the username part of username.github.io with your GitHub username. For example, if my username on GitHub is abcde, I would create a repository called abcde.github.io and then enable GitHub Pages in its settings as you have done.
You need select source branch to publish(Initially it will be none. So nothing published) in
Settings -> Github pages --> source and click save. Then only it will be published to username.github.io URL.
Make sure your branch has index.html file.
Normally, github pages URLs are generated as username.github.io/repo-name.
I'm not sure what naming the repo as you did would do, but in most cases, just name the repo as you normally would (a description of the project) and then publish the sites that way. If you already have code, here is how to rename the project in Github and updating the remote url
I'm not sure exactly why your pages aren't generating, but it likely has to do with the name of your repo.

404 Error on files that exist in the proper place on GitHub Pages

This is my first attempt at using GH Pages, and I have a pretty simple blog site created with Vuejs.
I've created my repo, then deployed the built code to a gh-pages branch, and the settings are pointed to that branch.
However, I get a WSOD when I try to view my site, and when I look in the console, I get a list of messages that the referenced files can't be found.
When I look in the /static directory in the gh-pages branch, though, all of the files that it says are missing are actually there where they're supposed to be in relation to index.html.
What am I missing that keeps the site from showing?
If you look into the requests, you would find out requesting
https://wonder95.github.io/static/css/app.da01b7b80b6795e91d3ceace476633af.css
This has missed the /smga/ part, and is not what published in your git pages. As the correct link should be
https://wonder95.github.io/smga/static/css/app.da01b7b80b6795e91d3ceace476633af.css