Using HTTPS for your site has lots of benefits. Chief among them being security. Using HTTPS ensures that no one can intercept and read traffic between you and the site you’re visiting.
However, it’s traditionally been somewhat difficult and expensive to provide HTTPS for your sites visitors. Now though, with Let’s Encrypt an SSL certificate is free! And if you’re using GitHub pages with a custom domain for hosting using it couldn’t be easier.
All you have to do is set up your custom domain to point to your GitHub pages site, and then update the settings on your repo to look like mine:
If, like me, you’re already using a custom domain on GitHub pages then you have to follow these simple steps to enable HTTPS:
- Remove your custom domain and save
- Re-add your custom domain and save again
- The “Enforce HTTPS” checkbox should now be enabled
Now you really don’t have an excuse to NOT be using HTTPS!