我需要付费才能更改 github 页面域吗?

Do I need to pay to change github pages domain?

我知道要将存储库设为私有,我需要将计划更改为付费,但如果我想将默认 username.github.com 更改为自定义域怎么办?

不,看起来您不需要升级您的 GitHub 帐户来使用域名。来自 https://help.github.com/articles/quick-start-setting-up-a-custom-domain/ 的文档(描述中没有提及任何关于成为付费客户的内容):

Pick a custom domain and register it with a DNS provider (if you haven't already done so). A DNS provider is a company that allows users to buy and register a unique domain name and connect that name to an IP (Internet Protocol) address by pointing your domain name to an IP address or a different domain name. A DNS provider may also be called a domain registrar or DNS host.

Set up your custom domain with your DNS provider. Our guides outline how to set up your pages custom domain with your DNS provider depending on the type of custom domain you have.

但是,GitHub (https://help.github.com/articles/about-supported-custom-domains/) 仅支持这些域类型:

www subdomain   (www.example.com)
one apex domain & one www subdomain (example.com & www.example.com)
apex domain (example.com)
custom subdomain    (blog.example.com)

如果您希望 GitHub 页面站点重定向到您的域(或其他人的域),似乎没有什么可以阻止您在 javascript 中放置一个简单的重定向 GitHub 页面重定向到该页面。