Skip to content
Discussion options

You must be logged in to vote

This happens because GitHub “locks” a custom domain to stop takeovers.

Do this:

  1. Make sure the domain isn’t still set somewhere else
  • Check any old repo/org Pages settings.
  • Remove the custom domain there.
  • Also delete any CNAME file in the old Pages branch (if it exists).
  1. Verify you own the domain (this is the real fix)
  • Go to your repo → Settings → Pages.
  • Add the custom domain.
  • GitHub will ask you to add a TXT record like:
    • _github-pages-challenge-<your-user-or-org> = <value GitHub gives you>
  • Wait for DNS to propagate (can take minutes, sometimes hours).
  • Hit Verify again.
  1. Point DNS to the new Pages site
  • If you use www.stark0de.com: set a CNAME to stark0de.github.io
  • If you use st…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@stark0de
Comment options

Answer selected by stark0de
Comment options

You must be logged in to vote
1 reply
@stark0de
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pages Host a static website, right from your repo Question Ask and answer questions about GitHub features and usage
3 participants