How to Use a Custom Domain with GitHub Pages
HTML-код
- Опубликовано: 8 фев 2025
- Learn how to add a custom domain to your GitHub Pages website. In this tutorial, we will demonstrate this with Google Domains, however this will work with any registrar including GoDaddy and others.
Learn how to setup your own GitHub Pages site here • How to Create a Free W...
Follow me on GitHub 👉 github.com/ton...
Find more at tonyteaches.tech
Check out my vlog channel @TonyFlorida
#github #githubpages
Thanks Tony been stuck at this point of the custom domain on my github page since this morning, I finally managed to have my github page using my custom domain - thanks for the help man
Thanks man, your videos are always clear and concise! You deserve more subscribers!
I appreciate that!
Thank you for this Tony, very clear and easy to implement.
Very welcome
Tony you are a god. Everyone else on the internet tries to make this stuff rocket science, but you make it nice and easy. Thanks so much!
Wow, thanks!
You saved hours of my efforts! Live long Tony!!
Happy to hear that!
Great video 😊 shirt & sweet. A perfect sequel to the first part
Hey. Thanks you. Well explained to a point dummies like me understood you first hand. No need to repeat your self. One extra subscriber right away. I want to learn more from you. Thanks
I wish google or godaddy were this clear in their documentation. Thank you! like a charm
Thanks! This was an amazing tutorial!! Helped me a lot :p
Thank you, very helpful video with clear steps to understand, I have been trying to get my www domain to redirect to my apex one, and It finally works, really good Video!
You're very welcome!
Thanks tony for this clear video
Very welcome
This is so clear and helpful. Thank you!!
dude thank you. you made it too easy.
Thanks - was easier to follow this then the online docs
no idea why it said sucessful then 12 hours later it says unsuccesful and no website. about to give up
Did you get any solution? ?
Because currently I am facing same problem.
For me, using windows CMD to clear server cache worked.
Google "Clear sever cache"
Open command prompt
type in: "ipconfig/flushdns"
Worked for me.
Did you manage to solve the problem?
@@pcls-techYes, I dont remember what exactly. As far as I remember there is 3 different methods and one of them worked, that did not involve copy and pasting those ip addresses...
@@jjglaser empty your server cache using cmd prompt. You can Google how.
Worked perfectly! Thankyou
You're welcome!
Very nicely explained!
Thanks!
Thank you! This worked for me.
Great!
it's really help BIG THANKS!!!
You're welcome!
TYSM! Helped a lot thanks :-)
ruclips.net/video/uE4aljoMBeg/видео.html
Thanks a lot for the video !
You are welcome!
Thanks for this - very helpful!
Glad it was helpful!
Thank you Tony!
brilliantly explained!
Glad it was helpful!
Thanks a lot, this video save me to read docs.
Glad it helped!
Thanks tony
nice tutorial
simple faster and working
Glad it helped
Very good Tutorial. Will be using this to host my personal website. Which I lucked out, and my real name is available.
Great tutorial! I came here from your video on setting up GitHub pages. After setting up your custom domain, how would you navigate to the demo subdomain you set up?
Thanks, this helped a lot. Nice hairstyle btw
Thank you! 😎
God bless you my friend
Thank you kindly
Thanks man
Hi Tony! Thanks for the video. I followed every step including changing my A records to the four IP addresses, and the custom domain worked on other browsers, but when i go to pages settings it still shows "Enforce HTTPS - Unavailable for your site because your domain is not properly configured to support HTTPS"
Hmm, I'm not sure why it's unavailable for you
you need to buy an ssl certificate to use https on your domain
could you elaborate? how would I add those cerst to my hostinger custom domain?
This was simpler than I thought. Thank you!
You're welcome!
Thx bro
Thanks a lot
Also if it doesn't work for anyone else, when i switched the 'type' to CNAME instead of A it worked fine
👍
I still did the regular type A, but when I entered www, I set it to CNAME and put my custom domain as the data. Pure trial and error.
Thanks a lot.
Most welcome Arifur!
Would be a good idea to link your other video where you explain how to setup a site on github pages.
Good idea. Linked in the description and here ruclips.net/video/o5g-lUuFgpg/видео.html
Thanks Daniel :)
thank you. i always wondered how i'd do this...now i can make updates right from my editor..isnt it fun to learn something new everyday?
Thanks you sir 😭🙏🏻
You're welcome!
Great explanation thanks! My GH Pages panel is giving me a warning however saying that I should use CNAME instead of A-records for 'www'?
Thanks!
No problem!
Hey bro. Does that mean you don’t need a hosting provider?
For adding a custom domain, we need to add txt, cname records too.
thanks!
Welcome!
So, you're pointing Domain to Hosting instead of Hosting to Domain.
I'm I right? Which way is best?
we still need to find a host?
What is the difference between the @ and www? Thanks
I still have the problem in github after doing a dns configuration could you help me plz
What is the problem?
@@TonyTeachesTech I'm getting a problem dns_probe_finished_nxdomain
can you put the link to github pages DNS records in description?
holy shit thank you
im using cloudflare and it doesnt let me add multiple ips
this video came out ages ago but i just wanted to say that my site now says redirected too many times
Hey... shall we buy domain name before using in github ? or it is for free ?
thanks
If you go to the IP addresses mentioned in this video, they will take you to the 404 Not Found page. So therefore, since A records point domain names to IP addresses, you will be taken to the 404 Not Found Page if you go to his website. I don’t know why his website didn’t take me to the 404 Not Found page when I visit it. Can you help me?
Hi Tony, nice video. Please what about WordPress
ty
why anchor links doesn't work on githubpages ?
How to index customer domian
can i ask a simple question?
is that shirt just a merch or u actually work in it?
How do you make changes to your site once your custom domain is live?
You can use GitHub to push changes to your repository
When I set gooddaddy or google is still free ?
Hey, when i go to the repository settings there is no Github Pages section. Any thoughts ?
We don't really have to pay something? is there any limitness for this?
You have to buy a domain in order to own it and configure it and only then you are able to add your domain as a custom domain to your github page right?
Yes
How else will you get your SSL certificate?
my hosting site is asking for the "host". Would this be "@"? & "www"? Thanks in advance!
why does private browser shows it correctly and normal browser dont?
How do I do this with squarespace domain and GitHub pages? I can enter one custom record at a time and receive and error message stating that they are unable to save this record. And can I do this with the free version of GitHub?
So cool, can we host dynamic websites as well
Unfortunately not on GitHub Pages
You should do a video about ssdnodes or about static site generator
Thanks for the suggestion
Any recommendations on how to get dynamic websites published? I noticed you answered someone's question that this method still only pushes static content. I was hoping it would get around that
Only static websites will work here
Hello. I am using squarespace and it says on github that it is not formatted correctly and to add a CNAME record linked to my pages site. Can you do a CNAME to pages site tutorial or just tell me in the replies? anything helps
If I use github for my website, what can i do so other people can't make changes to my website if they stumble upon it in github? Because if I make it private then it won't be public for people to see my website right?
Sorry if its a dumb question.
Thank you.
You need the paid plan to make your repo private while still allowing your site to be visible to other people
Thank you for the video. It's helping! I have an issue with GoDaddy. I am able to paste in the four IP addresses with the "@" but when I try it with "www" it says I must use "@", "sub-domain" or "wildcard (*)". I have no idea what's going on!
Hey Conor, I'm having same issue on godaddy. Did you find a solution?
check if you already have a CNAME record on www, and delete it, might help
As soon as I add custom domain to GitHub the enforce https button gets unchecked and Im unable to enforce it. HELP ME!!
Hi. i had it working for about a day and a half, but suddenly it has stopped working. It suddenly started redirecting me to the 'this domain is reserverd' page. Is there something new that should be updated? thanks!
Will I have to pay for my own domain name before I can use it on the custom domain page on GitHub. Also, if yes, is there any site where I can get a free one?
Worked as a charm, seen a few vids and you helped me a few times, forgot to sub - please forgive me as i'm doing that now --- SUBBED :D
Really appreciate it :)
i have an issue when adding a custom domain to GH pages, when I try to save it there's "DNS check in progress" going on for ever, do I need to add those A records with IP-addresses first, and then retry adding it? If anyone has any idea, please help
where do you get those ip addresses?
Which ones?
@@TonyTeachesTech the one you had to enter in dns records. never mind i had already fixed
Hero
how much do we have to wait , 24 hours for it to get live?
At most I would suspect
Unable to enforce HTTPS please help
What's the @ for ?
i get blank page any solution ?
are u required to have the repo set up to push builds to main or does it also work to have the builds push to gh-pages branch while also using a custom domain?
I don't see why a branch wouldn't work (but I could be wrong)
So I need to buy a domain ?
Not necessarily. You can use the free subdomain that GitHub provides like I demonstrate here ruclips.net/video/o5g-lUuFgpg/видео.html
i added all the ip adresses aND the CNAME www to my github account and still issues
Uh oh, what's wrong
@@TonyTeachesTech stupid mistake. I did it on a dns setting “template” … not in the actual dns settings for my domain lol.
Thank you very much, man. Your effort decreased my effort by a lot.
Glad I could help!
mine is just a white page
Hi to all
Hello there :)
Links is "HTTPS" free?😃
it won't show the stuff below github pages
Oh?
I want Remove this how can i do that
I don't know
Good info... but I just can't sub because of the water... 🤣
why you just jump to google domains?
As an SEO I wouldn't set the www unless you have history and want to use this dinosaur. Google will see that as an entirely different URL and you will then need to manage the redirection. No you don't get penalised!
But the content is Nice.
Thanks! Subscribe for more :)