---
title: "How to Host a Static Site with GitHub Pages"
description: "In this article we'll show you how you can easily host a basic website on your GitHub account using GitHub Pages. This can be valuable if you require an offsite resource to redirect visitors to in..."
url: https://www.inmotionhosting.com/support/website/git/host-site-github-pages/
date: 2018-02-21
modified: 2025-09-15
author: "Christopher Maiorana"
categories: ["Git"]
type: post
lang: en
---

# How to Host a Static Site with GitHub Pages

In this article we’ll show you how you can easily host a basic website on your GitHub account using **GitHub Pages**. This can be valuable if you require an offsite resource to redirect visitors to in case of emergency hosting situations. For example, if you are undergoing maintenance or switching servers, you will be able to offload resources temporarily.

Be sure to check out our guides about [using GitHub](/support/website/git/why-of-why-not-use-github/) and [logging into your GitHub account](/support/website/git/using-your-github-account/).

## Setting up a Site with GitHub Pages

1. [Log into your GitHub Account](/support/website/git/using-your-github-account/)
2. Select **New repository** at the top right
3. Name the repository
4. Click **Create Repository**
5. Visit your repository and choose **Settings**
6. Select **Choose a theme** under the GitHub Pages section
7. Select your theme
8. Add content to the page or edit the existing content in the form window
9. Click the green **Commit Changes** button to add changes to the master branch
10. Visitor your new site at *https://username.github.io/name-of-repository/* (a link will be provided to you)

GitHub pages supports static HTML files.This means you can host an uncomplicated site there. There are no databases, so you can’t install something like a WordPress site. You will also have no options for SSL if you choose to use a [custom domain](/support/domain-names/how-to-use-a-custom-domain-with-github-pages/). But, for a very basic project or emergency page, this is an easy way to set up a site quickly.

## Next Steps

Now that you have created a single page hosted at GitHub.com, we will show you how to use a [custom domain](/support/domain-names/how-to-use-a-custom-domain-with-github-pages/).
