I’m trying to use a custom domain with my personal Github site, building it with Jekyll. The site loads fine when I access patreeceeo.github.io but I get a 404 with my custom domain, let’s say xyz dot com. The situation may be complicated by the fact that I had used this domain with a previous repository on Github and the process of removing it from the old repo and adding it to the new one seemed glitchy: When I went in to the settings on the old repo and hit the remove button on the custom domain I got a 404 page, so then I simply deleted the CNAME file (contents: xyz dot com) from the repo. I then committed a CNAME (contents xyz dot com) to the new repo. The custom domain never showed up in the settings for the new repo, however.
Here’s what else I’ve done:
I’ve followed all the steps in configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site.
I’ve set the full
url including https:// in the Jekyll _config.yml file.
I created a test.html and tried to load xyz dot com/test.html, as suggested in this post: github.community slash after-adding-custom-domain-there-are-now-404-errors-using-google-and-project-pages/10636, but that also 404s.