Search code examples
githubsslssl-certificategithub-pagesdomain-name

Is it possible to use HTTPS/SSL on GitHub Pages sites with a custom domain?


Is there any way to use HTTPS/SSL on GitHub Pages sites that use a custom domain? SSL is recommended for better search engine ranking and there are a lot of other uses for it beyond that.


Solution

  • Custom domains on GitHub Pages do support HTTPS / SSL:

    GitHub Pages has supported custom domains since 2009, and sites on the *.github.io domain have supported HTTPS since 2016. Today, custom domains on GitHub Pages are gaining support for HTTPS as well, meaning over a million GitHub Pages sites will be served over HTTPS.

    https://blog.github.com/2018-05-01-github-pages-custom-domains-https/

    1. Go to https://github.com/**username**/**repo**/settings

    2. Check the checkbox "Enforce HTTPS":

    Enforce HTTPS


    Prior to May 1, 2018, SSL was supported by GitHub Pages only on sites using a *.github.io domain: https://help.github.com/articles/securing-your-github-pages-site-with-https/