Vigyata.AI
Is this your channel?

How to Host a Website on GitHub Pages Free (Custom Domain Setup Included)

384.4K views· 6,998 likes· 5:32· Apr 15, 2024

🛍️ Products Mentioned (4)

Master the art of hosting your website on GitHub Pages with a custom domain for that extra professional polish! In this comprehensive guide, we'll walk you through the entire process, from setting up your GitHub repository to configuring DNS records and seamlessly integrating your personalized domain. Elevate your online presence and impress visitors with your own custom domain on GitHub Pages. Some free templates to use here: https://html5up.net/ https://technext.github.io/100-template-bundle/ https://templatesjungle.com/ Another example using Cloudflare pages and static WordPress here: https://youtu.be/62hasINWHuY?si=mjSv_ZLL-7NI_rai More tips and tutorials at: https://ideaspot.com.au/ 0:00 Tutorial goals 0:28 Create Repository 0:42 Add files 1:47 Set up page 2:44 Github Custom Domain set up

About This Video

In this video I show you how to host a website on GitHub for free using GitHub Pages. I start from scratch by creating a new public repository, then I upload a simple HTML template site (I’m using the free “Spectral” template from HTML5 UP). Once the files are in, I commit the changes, head into Settings → Pages, and use the GitHub Actions workflow for a static site. After the action finishes deploying, your site is live on the default GitHub Pages URL. Then I walk you through the part most people get stuck on: setting up a custom domain on GitHub Pages (still free). I show where to find the required GitHub IP addresses, then jump into my domain DNS manager (I’m using Namecheap in the demo) and add the four A records for the root domain. I also add a CNAME for www pointing back to the domain. Finally, I use dnschecker.org to confirm DNS propagation, save the custom domain in GitHub Pages, and make sure “Enforce HTTPS” is turned on so the site loads securely. If you want, you can take this further by exporting WordPress to static (Simply Static) and hosting that on GitHub too.

Frequently Asked Questions

🎬 More from IdeaSpot