Hosting on GitHub

Hosting on GitHub
0

So, I’m not sure what I am doing wrong and i would like some help.

So i’ve been playing around with trying to host my product landing page on github. However, once everything is said and done, files uploaded, when i click on the link to the page it gives me a 404 error and the page does not exist.

So I started by creating a new repository and named it: (username).github.io

Then, i added my 2 files for the product landing page which included an html file named index and its corresponding css file.

Once these files have been successfully uploaded and committed to the repo, i go to my settings and i can see the link for where it is being hosted. It usually says "your site is being published at https://(username).github.io/ but, when i click on this link it brings me to the 404 error. I am not sure what I am doing wrong.

Any help or guidance would be appreciated as I would like to eventually put my portfolio page on github and have it hosted.

Thanks

Hi,

How did you name your repo? I think you should just name your repo with a word (something) and then in the Settings of the repo on GitHub set the Pages section for this repo to use the master branch as its source. That will then give you a URL like: (username).github.io/(something).

Hope this helps!
sandrab

So i changed the repository name. Here is a link to it if curious https://github.com/guardiansfolly/Coffee-Express-Test

I went into settings and i selected the master branch as the source as recommended and i am still getting a 404 error file not found page

Could you try to rename the index file to lowercase? I think index.html is the default and it is case-sensitive. If I browse to https://guardiansfolly.github.io/Coffee-Express-Test/Index.html it works, but without the /Index.html part it does not, because it can not find a lowercase index.html.

sandrab

1 Like

WOW

haha ok yes that did work. I was unaware that the index.html was case sensitive :joy:

Thank you @sandrab for your help, i appreciate it :slight_smile:

Cool! And nice page, by the way :slight_smile:

Thank you! I think it turned out pretty nice even though it is black and white and not too much color involved. Still learning how to add color without being over the top or creating eyesores