DEV Community

Hosting a custom domain on Github

Visakh Vijayan on January 15, 2019

So we have all been there where we want to make a static website and are confused as to where to buy them from. Usually, it involves two steps - ...
Collapse
 
tadman profile image
Scott Tadman • Edited

It's really hard to understate the importance of having full control over the domain you use to promote yourself and host your content. If GitHub pages works today that's great, but if you find something better in the future you'll be able to move at will, without breaking any links.

This is not possible if you're using Medium or some other blogging platform that forces their name into the URL. They'll own that content forever, and you won't.

GitHub Pages is a fantastic hosting platform and when combined with Jekyll you can actually create a lot of rich content with git and a smidge of Ruby.

Collapse
 
mondal10 profile image
Amit Mondal

Thank you, that was really helpful. I just wanted to add something that we also need to navigate to our DNS provider and create a CNAME record that points the subdomain to the default domain for our site. Steps are documented on GitHub as well.

Collapse
 
amitgoyal360 profile image
Amit Goel

Awesome

Collapse
 
vjnvisakh profile image
Visakh Vijayan

Thank you Amit.