GitHub Pages Domain Verification Failing After Moving to New Repo #170204
Replies: 3 comments 1 reply
-
|
I was able to resolve the issue by verifying the custom domain with GitHub Pages as required. Here’s what I did, step by step: Go to your repository on GitHub where the site is hosted. Navigate to Settings > Pages. Under Custom domain, enter www.justwiselove.com and click Save. GitHub will then show a message asking you to verify ownership of the domain. This requires creating a DNS TXT record. 🔧 Steps to verify your domain with GitHub (via Cloudflare) Since I moved my domain to Cloudflare, I had to: Login to Cloudflare and go to the DNS settings for justwiselove.com. Add a new DNS record with the following details: Type: TXT Name: _github-pages-challenge- Value: GitHub will provide this TXT value in the Pages settings after you attempt to save the custom domain. Save the DNS record and wait a few minutes (sometimes up to 30 mins) for DNS to propagate. ✅ After DNS verification Once the TXT record was detected by GitHub, the warning message disappeared, and the domain was successfully connected to my new repository. Also, make sure that: You have set up a CNAME file in your repo (for www.justwiselove.com). Your DNS settings in Cloudflare point to GitHub's IPs if you're using A records, or use a CNAME to yourusername.github.io. 🌐 References GitHub Docs – Verifying a custom domain |
Beta Was this translation helpful? Give feedback.
-
Resolving GitHub Pages Custom Domain Verification ErrorYou’re seeing the error: This happens because GitHub requires domain ownership verification before allowing you to assign it to a new repository. Steps to Fix
Note
✅ Once verified, your domain should work fine with the new repository. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
I previously had my domain justwiselove.com connected to a different GitHub account and repository, where it was live through GitHub Pages. I have since rebuilt the website in a different repository under this GitHub account. However, when I try to connect the domain to the new repository in GitHub Pages, I keep getting the following error:
"You must verify your domain www.justwiselove.com before being able to use it. Check out https://docs.github.com/pages/configuring-a-custom-domain-for-your-github-pages-site/verifying-your-custom-domain-for-github-pages for more information."
I’ve tried to resolve the issue but haven’t been able to. Could you please help me understand what I need to do to fix this? For context, I also switched my domain registrar from GoDaddy to Cloudflare and deleted all DNS records except the NS records.
Beta Was this translation helpful? Give feedback.
All reactions