Host a static website for FREE on GitHub

Hosting on Github – Host a static website for FREE on GitHub


Host a static website for FREE on GitHub

Hosting on Github

Hey, this is kamal. Today we are going to see how to host a static website for free on GitHub

Support us on Patreon :

Web Development Crash Course Playlist :

Icons :

Facebook page :

Bootstrap :

Visual Studio Code (code editor) :

Color Palette :

Thumbnail Icon :
Icons are taken from www.flaticon.com

you search:

Hosting on Github

Host a static website for FREE on GitHub

31 thoughts on “Hosting on Github – Host a static website for FREE on GitHub

  1. I forgot to mention one thing. Make sure to use ur username as the repo name. It should be
    Yourusername.github.io

    And anyone who is having a 404 error do this

    404 means that the file could not be found. To solve this make sure the mainpage is named as index.html and also check if the index.html file is in the root directory and not in any sub folder.

    So if u have only one project in ur repo then make sure that the index file is in
    yourusername.github.io and not in
    yourusername.github.io/subfolder

    If u have multiple projects in ur repo then access it by adding the subfolder name in the URL along with the repo name, like this
    https://yourusername.github.io/subfolder

  2. So I knew about this watching your video got confused, directly typing links doesn't work. Everyone who is stuck, go to Settings of your repo on Githib and enable github pages by selecting branch and it will reload the page with relevant link.

    By default it looks for index.html, if not found it will give error simply add /index.html to the provided link or any starting point page for it to work.

  3. 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.

    anyone can help?

Leave a Reply

Your email address will not be published. Required fields are marked *