有没有办法在使用自定义域的 GitHub Pages 站点上使用 HTTPS/SSL?建议使用 SSL 以获得更好的搜索引擎排名,除此之外还有很多其他用途。
最佳答案
GitHub Pages 上的自定义域确实支持 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/
转到
https://github.com/**username**/**repo**/settings
选中“强制 HTTPS”复选框:
2018 年 5 月 1 日之前,GitHub Pages 仅在使用 *.github.io
域的站点上支持 SSL:https://help.github.com/articles/securing-your-github-pages-site-with-https/
关于ssl - 是否可以在具有自定义域的 GitHub Pages 站点上使用 HTTPS/SSL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42172216/