How to Host a Website on Github for Free – [2021]

Written by khalid

As the founder of KS Devware, I am Khalid Saifullah. A young entrepreneur. With over 4 years of experience, I’m a software engineer (full-stack web & mobile) and UI/UX designer. Developing software for the world of intent is something I'm passionate about and I'm dedicated to making the world of intent easy and affordable for everyone.

Jan 28, 2021

Today we will learn how to host a static website on Github for free. Github allows us to transfer a static site on their foundation utilizing Github Pages for free. Github Pages is a feature that allows us to host static websites. We can even use your own domain names.

Steps:

and then Boom!!!

Let’s host a website on Github

 

Step 1: Signup on Github

From your web browser, go to github.com and Sign up for a new account (or Sign in if you already have a GitHub account.)

Signup to github

Step 2: Create a repository

Now we need to create a repository. A repository is that where we will store our files and folders. To create a repository click on ‘new repository’ or click the flowing link to create new repository.

Create a new repository

Step 3: Upload files

Now we need to upload our website’s files and folders. Make sure there has an index.html file. cause index.html will be the root file on your site. If you don’t do so it will throw an error. Follow the instructions of the images below.

host a static website on Github
host a static website on Github
host a static website on Github

Hurry! we have successfully uploaded our files and folders.

Step 4: Create a Github page

We are at the end of our goal. now we have to create a Github gage. Let’s follow the instruction on the images below.

host website on github
host website on github
host website on github
host website on github
host website on github

BOOM! Now we are done. now you can share the link wherever you want. you can even use a custom domain also. 

Note:

  • We are only allowed to host static websites. no dynamic website anymore.
  • At once we can only upload 100 files. if we need to upload more files, we can upload then in twice or more.

You may also like…

JavaScript Exam – 01

JavaScript Exam – 01

Do the best! সর্বোচ্চ পরীক্ষার সময় 35 মিনিট কেহ দুর্নীতি করার চেষ্টা করবেন না. আল্লাহ আপনাকে দেখছেন. নিজেই নিজের...

Final Exam

Final Exam

Instructions এক্সামের মার্ক 50 আমি সবার টা চেক করব, এরপর রেজাল্ট পাবলিশ করব.যারা আগে সাবমিট করবে তারাই ফরেস্ট হবে. so...

12 Comments

  1. Runa Akter

    Wow so cool bro 🥳🥳🥳🥳🥳🥳

    Reply
    • khalid

      Thank you ❤

      Reply
  2. Arman Uddin

    I have seen the video, which gave the good idea, the this blog made my idea better and super clear, Alhamdulillah. Thanks for this awesome help, hoping for getting new blog.

    Reply
    • khalid

      Thank you ❤.
      You can subscribe to our newsletter. So you will be updated when I will upload a new blog 🙂

      Reply
  3. protno islam

    so cool brother carry on.take my love

    Reply
    • khalid

      Thank you ❤

      Reply
  4. saheb khan

    thank you brother

    Reply
  5. Mehedy Hasan Munna

    Helpful.Thanks

    Reply
  6. Hasibul Islam

    very informative

    Reply
    • khalid

      Thank you 💞

      Reply
  7. Aditya Mukherjee

    Sir I followed the same process, my website is running but images are not being loaded which were being loaded on the local host, Kindly find me a solution, Please.

    Reply

Submit a Comment

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

Get In Touch

Get In Touch