Can't get custom domain working. #168722
-
Select Topic AreaQuestion BodyHi! I can't get my custom domain working with https. my domain is afidan.nl. I want both typing afidan.nl and www.afidan.nl bringing you to www.afidan.nl (this works as of now). I tried putting in afidan.nl as my custom domain as well as www.afidan.nl, both give the same error with obviously the error saying afidan.nl when I just put in afidan.nl: my current dns settings My repo of the pages is: The CNAME file in my repo contains this: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
Hey! I took a look at your setup, and you're very close—just a few tweaks should get HTTPS working for www.afidan.nl. What’s Already Correct: You have a CNAME file in your repo with www.afidan.nl. Your www subdomain is pointed to GitHub via a CNAME to arsenfidan.github.io. All required A and AAAA records for the root domain (afidan.nl) are correctly pointing to GitHub Pages servers. So the issue is likely related to DNS propagation or missing ALIAS/ANAME records. What’s Still Missing or Can Be Improved:
Be redirected to www.afidan.nl, or Be set using an ALIAS or ANAME record (not always supported by DNS providers) But since you want afidan.nl → www.afidan.nl and enforce HTTPS on www.afidan.nl, your current A/AAAA records are not enough on their own for HTTPS to be issued for the root domain. Fix Steps: afidan.nl → https://www.afidan.nl Then: Keep only www.afidan.nl in your GitHub Pages custom domain setting. Don’t enter afidan.nl — GitHub will otherwise try to issue a cert for both. Option 2: Use an ALIAS/ANAME record at @ (if your DNS provider supports it) Not all providers support this, so check your DNS docs. Wait for Propagation Wait a few hours (up to 24h max). Then go to your GitHub repo → Settings → Pages, and enable Enforce HTTPS once the certificate is issued. |
Beta Was this translation helpful? Give feedback.
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Check your domain provider's DNS settings to ensure the CNAME record for |
Beta Was this translation helpful? Give feedback.
Hey! I took a look at your setup, and you're very close—just a few tweaks should get HTTPS working for www.afidan.nl.
What’s Already Correct:
Your GitHub repo is set up correctly.
You have a CNAME file in your repo with www.afidan.nl.
Your www subdomain is pointed to GitHub via a CNAME to arsenfidan.github.io.
All required A and AAAA records for the root domain (afidan.nl) are correctly pointing to GitHub Pages servers.
So the issue is likely related to DNS propagation or missing ALIAS/ANAME records.
What’s Still Missing or Can Be Improved:
GitHub expects the root domain (afidan.nl) to either:
Be redirected to www.afidan.nl, or
Be set…