Skip to content

Instantly share code, notes, and snippets.

@james-see
Last active August 11, 2021 16:52
Show Gist options
  • Save james-see/fdec967db225fd4339519bc7cc9d0b42 to your computer and use it in GitHub Desktop.
Save james-see/fdec967db225fd4339519bc7cc9d0b42 to your computer and use it in GitHub Desktop.
Moving your domain to github hosting guide

MOVING TO GITHUB HOSTING FOR YOUR DOMAIN

WHY

  1. Github hosting is free
  2. For static sites, landing pages, etc. this is the easiest way to get your presence on the web

HOW

Step 1: Update your domain registrar DNS settings to the following: Add A records for @ with 185.199.108.153, 185.199.109.153 185.199.110.153, 185.199.111.153

Step 2: Update your domain registrar forwarding to auto forward from domain.com to https://www.domain.com and www.domain.com to https://www.domain.com

Step 3: Add a CNAME file to a new github repo and a gh-pages branch that has the following: www.domain.com Add a simple html5 landing page for your business or a hello world index.html file for now just to confirm things are working, you can always update later

Step 4: Configure the github pages settings for the repo to use that branch and turn on https Go to Settings -> Pages -> and set the custom domain to www.domain.com, select the branch you want to use and root folder, verify the dns resolution is working and then you can turn on https

Step 5: profit (no seriously that is all you need)

Addendum:

  1. Free html5 templates: https://html5up.net/

  2. Consult with me:
    I charge $250 to set this up for you with a simple landing page and domain updates, with a yearly maintenance invoice of $50. Mods to the content are $50 per hour minimum 1 hour.

@james-see
Copy link
Author

james-see commented Aug 11, 2021

Screen Shot 2021-08-10 at 10 51 19 PM

Example redirect setup from namecheap.

@james-see
Copy link
Author

Screen Shot 2021-08-10 at 10 50 30 PM

Example DNS setup for namecheap for https://www.riverrrecords.com site I created the brand, design, domain, code, and hosting, and setup for my brother.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment