---
title: "How to Point a Subdomain to GitHub Pages"
description: "You may recall, in a previous article, we explained how you can &lt;a href=\"/support/website/git/how-to-use-a-custom-domain-with-github-pages/\"&gt;point a domain to GitHub&lt;/a&gt; to host a static..."
url: https://www.inmotionhosting.com/support/domain-names/how-to-point-a-subdomain-to-github-pages/
date: 2018-03-14
modified: 2021-08-16
author: "Christopher Maiorana"
categories: ["Domain Names"]
type: post
lang: en
---

# How to Point a Subdomain to GitHub Pages

```
You may recall, in a previous article, we explained how you can point a domain to GitHub to host a static site.    In this article, we're going to show you how you can do the same thing but for a subdomain.      There are many reasons why you might want to use a subdomain.   You may want to use a subdomain for testing, or, you may already have a site on your primary domain and would like to point a subdomain to GitHub pages. 

    Whatever the reason, using a subdomain as a custom domain for GitHub Pages is easy to set up.   Follow along with the steps below to see how you can do it. 

 

## How to Point the Subdomain to GitHub

   In order to accomplish these steps you will only need access to cPanel.     You also want to note the GitHub's IP addresses you can use:  
* 192.30.252.153   
* 192.30.252.154 

 

VIGIAPLACEHOLDER0END

 

## Allow Some Time for Propagation

   Now that you have pointed your subdomain to GitHub, you may need to wait a few hours for the records to propagate.      If the site is not resolving after 24 hours you may want to double-check your input to make sure there are no mistakes in copying.
```
