{"id":"https://www.namesilo.com/questions/websites-and-ai/how-do-i-connect-my-domain-to-github-pages","url":"https://www.namesilo.com/questions/websites-and-ai/how-do-i-connect-my-domain-to-github-pages","title":"How do I connect my domain to GitHub Pages?","description":"Add the custom domain in your GitHub Pages repository settings and configure DNS using GitHub's current instructions for an apex domain or subdomain.","language":"en","category":"websites-and-ai","datePublished":"2026-11-17","dateModified":"2026-11-17","answer":"Add the custom domain in your GitHub Pages repository settings and configure DNS using GitHub's current instructions for an apex domain or subdomain. Verify domain ownership where supported and enable HTTPS once available. Keep unrelated email records intact, and do not copy IP addresses from an outdated tutorial.","body":"How do I connect my domain to GitHub Pages?\n\nAdd the custom domain in your GitHub Pages repository settings and configure DNS using GitHub's current instructions for an apex domain or subdomain. Verify domain ownership where supported and enable HTTPS once available. Keep unrelated email records intact, and do not copy IP addresses from an outdated tutorial.\n\nProtect the custom-domain binding\n\nGitHub documents ownership verification and takeover precautions for custom domains. Configure the repository and DNS as a coordinated change, and remove obsolete DNS records when a Pages site is retired.\n\nYour next steps\n\nAdd the domain to the repository\n\nApply GitHub's current DNS instructions\n\nVerify ownership and HTTPS\n\nFrom a name to a working website\n\nDomain registration, site creation, and hosting are separate tasks, even when a provider bundles them. Keep control of your domain and check what can be exported before committing your content and business workflows to a builder.\n\nOwnership: Registrar access and content rights.\n\nFeatures: Forms, payments, email, and integrations.\n\nPortability: Code, data, assets, and backend dependencies.\n\nLaunch: Mobile usability, HTTPS, redirects, and working forms.","steps":["Add the domain to the repository","Apply GitHub's current DNS instructions","Verify ownership and HTTPS"],"faqs":[],"sources":[{"name":"GitHub Pages: configure a custom domain","url":"https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site"},{"name":"GitHub Pages: configure a custom domain","url":"https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site"},{"name":"Google Search: site moves with URL changes","url":"https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes"}],"json":"https://www.namesilo.com/questions/data/how-do-i-connect-my-domain-to-github-pages.json","markdown":"https://www.namesilo.com/questions/data/how-do-i-connect-my-domain-to-github-pages.md"}