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

Комментарии • 193

  • @ntsikelelonelsonmbekwa3231
    @ntsikelelonelsonmbekwa3231 2 года назад +7

    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

  • @FactsSeeker
    @FactsSeeker 3 года назад +13

    Thanks man, your videos are always clear and concise! You deserve more subscribers!

  • @christiansmith188
    @christiansmith188 3 года назад +4

    Thank you for this Tony, very clear and easy to implement.

  • @dirtymike3329
    @dirtymike3329 3 года назад +3

    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!

  • @aashishchaubeyschannel2676
    @aashishchaubeyschannel2676 3 года назад +3

    You saved hours of my efforts! Live long Tony!!

  • @khalidelgazzar
    @khalidelgazzar 10 месяцев назад

    Great video 😊 shirt & sweet. A perfect sequel to the first part

  • @sibongiseninsele
    @sibongiseninsele 3 месяца назад

    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

  • @mikem-zz4ui
    @mikem-zz4ui 2 года назад

    I wish google or godaddy were this clear in their documentation. Thank you! like a charm

  • @ARealLemonLime
    @ARealLemonLime 11 месяцев назад

    Thanks! This was an amazing tutorial!! Helped me a lot :p

  • @thomas_w
    @thomas_w 3 года назад +6

    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!

  • @ddjzx171
    @ddjzx171 7 месяцев назад

    Thanks tony for this clear video

  • @dorothycai8991
    @dorothycai8991 Год назад

    This is so clear and helpful. Thank you!!

  • @mannymetzger4143
    @mannymetzger4143 7 месяцев назад

    dude thank you. you made it too easy.

  • @wongstephen
    @wongstephen 2 года назад

    Thanks - was easier to follow this then the online docs

  • @jjglaser
    @jjglaser Год назад +19

    no idea why it said sucessful then 12 hours later it says unsuccesful and no website. about to give up

    • @mrstranger8388
      @mrstranger8388 Год назад +6

      Did you get any solution? ?
      Because currently I am facing same problem.

    • @RichardHorvatich963
      @RichardHorvatich963 13 дней назад

      For me, using windows CMD to clear server cache worked.
      Google "Clear sever cache"
      Open command prompt
      type in: "ipconfig/flushdns"
      Worked for me.

    • @pcls-tech
      @pcls-tech 12 дней назад +1

      Did you manage to solve the problem?

    • @jjglaser
      @jjglaser 12 дней назад

      ​​@@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...

    • @RichardHorvatich963
      @RichardHorvatich963 12 дней назад +1

      @@jjglaser empty your server cache using cmd prompt. You can Google how.

  • @Azend_1
    @Azend_1 Год назад

    Worked perfectly! Thankyou

  • @FANSasFRIENDS
    @FANSasFRIENDS 3 года назад +1

    Very nicely explained!

  • @deshayq
    @deshayq 2 года назад

    Thank you! This worked for me.

  • @jamemieccsstudio7396
    @jamemieccsstudio7396 Год назад

    it's really help BIG THANKS!!!

  • @16RA
    @16RA 3 года назад +1

    TYSM! Helped a lot thanks :-)

    • @TonyTeachesTech
      @TonyTeachesTech  3 года назад

      ruclips.net/video/uE4aljoMBeg/видео.html

  • @ThaReportar
    @ThaReportar 3 года назад +1

    Thanks a lot for the video !

  • @dougie186
    @dougie186 2 года назад

    Thanks for this - very helpful!

  • @Notsoplain
    @Notsoplain Год назад

    Thank you Tony!

  • @thedebapriyakar
    @thedebapriyakar 2 года назад

    brilliantly explained!

  • @berkslv
    @berkslv 3 года назад

    Thanks a lot, this video save me to read docs.

  • @G_m0ney
    @G_m0ney 7 месяцев назад

    Thanks tony

  • @Alexanderzul
    @Alexanderzul 3 года назад

    nice tutorial
    simple faster and working

  • @GoobNoob
    @GoobNoob 2 года назад

    Very good Tutorial. Will be using this to host my personal website. Which I lucked out, and my real name is available.

  • @jaronimoh
    @jaronimoh 2 года назад +3

    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?

  • @tech3425
    @tech3425 Год назад

    Thanks, this helped a lot. Nice hairstyle btw

  • @peppesemproni913
    @peppesemproni913 2 года назад

    Thank you! 😎

  • @FeranjaBanus
    @FeranjaBanus 11 месяцев назад

    God bless you my friend

  • @SomeshSamadder
    @SomeshSamadder 7 месяцев назад

    Thanks man

  • @jwally7523
    @jwally7523 3 года назад +9

    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"

    • @TonyTeachesTech
      @TonyTeachesTech  3 года назад

      Hmm, I'm not sure why it's unavailable for you

    • @bxnbrch
      @bxnbrch 3 года назад

      you need to buy an ssl certificate to use https on your domain

    • @sidkapoor9085
      @sidkapoor9085 2 года назад

      could you elaborate? how would I add those cerst to my hostinger custom domain?

  • @_romeopeter
    @_romeopeter Год назад

    This was simpler than I thought. Thank you!

  • @zidanabraham_
    @zidanabraham_ 10 месяцев назад +1

    Thx bro

  • @EUU100
    @EUU100 3 года назад +1

    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

    • @TonyTeachesTech
      @TonyTeachesTech  3 года назад

      👍

    • @dirtymike3329
      @dirtymike3329 3 года назад

      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.

  • @Arifur-Rahman
    @Arifur-Rahman 2 года назад

    Thanks a lot.

  • @stormbytes
    @stormbytes 2 года назад

    Would be a good idea to link your other video where you explain how to setup a site on github pages.

    • @TonyTeachesTech
      @TonyTeachesTech  2 года назад

      Good idea. Linked in the description and here ruclips.net/video/o5g-lUuFgpg/видео.html
      Thanks Daniel :)

  • @MrSammzie
    @MrSammzie Год назад

    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?

  • @darkflame2805
    @darkflame2805 2 года назад

    Thanks you sir 😭🙏🏻

  • @user-gj5ml9ik2s
    @user-gj5ml9ik2s 9 месяцев назад

    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'?

  • @christopherforce6542
    @christopherforce6542 3 года назад

    Thanks!

  • @samsenolay2210
    @samsenolay2210 Год назад

    Hey bro. Does that mean you don’t need a hosting provider?

  • @HabibUllah-hg5jv
    @HabibUllah-hg5jv Год назад

    For adding a custom domain, we need to add txt, cname records too.

  • @gusschafferr
    @gusschafferr Год назад

    thanks!

  • @christopherrimplington3643
    @christopherrimplington3643 Год назад

    So, you're pointing Domain to Hosting instead of Hosting to Domain.
    I'm I right? Which way is best?

  • @tugbamuhliseokyay9993
    @tugbamuhliseokyay9993 2 месяца назад

    we still need to find a host?

  • @tahmidurrahmaneram
    @tahmidurrahmaneram Год назад

    What is the difference between the @ and www? Thanks

  • @moufdiayoubchikaoui2465
    @moufdiayoubchikaoui2465 3 года назад +4

    I still have the problem in github after doing a dns configuration could you help me plz

    • @TonyTeachesTech
      @TonyTeachesTech  3 года назад +4

      What is the problem?

    • @flarexlucifer
      @flarexlucifer Год назад +1

      ​@@TonyTeachesTech I'm getting a problem dns_probe_finished_nxdomain

  • @block_hacks
    @block_hacks Год назад

    can you put the link to github pages DNS records in description?

  • @BanjiYT
    @BanjiYT 3 месяца назад

    holy shit thank you

  • @GhostVistaz
    @GhostVistaz 2 месяца назад

    im using cloudflare and it doesnt let me add multiple ips

  • @daawesomeman2859
    @daawesomeman2859 4 месяца назад

    this video came out ages ago but i just wanted to say that my site now says redirected too many times

  • @Navneetkaur001-s
    @Navneetkaur001-s 7 месяцев назад

    Hey... shall we buy domain name before using in github ? or it is for free ?

  • @fifier
    @fifier 2 года назад

    thanks

  • @GamerEmerald7200
    @GamerEmerald7200 3 месяца назад

    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?

  • @nanapeprahsamuel791
    @nanapeprahsamuel791 Год назад

    Hi Tony, nice video. Please what about WordPress

  • @edwinsmith3178
    @edwinsmith3178 Год назад

    ty

  • @bartekkupski395
    @bartekkupski395 Год назад

    why anchor links doesn't work on githubpages ?

  • @phonnary396
    @phonnary396 Год назад

    How to index customer domian

  • @gabrielbalang5694
    @gabrielbalang5694 2 года назад

    can i ask a simple question?
    is that shirt just a merch or u actually work in it?

  • @voodazz
    @voodazz 2 года назад +1

    How do you make changes to your site once your custom domain is live?

    • @HearsH96
      @HearsH96 2 месяца назад

      You can use GitHub to push changes to your repository

  • @ximenarodriguez5845
    @ximenarodriguez5845 2 года назад

    When I set gooddaddy or google is still free ?

  • @stilian7542
    @stilian7542 2 года назад

    Hey, when i go to the repository settings there is no Github Pages section. Any thoughts ?

  • @edberaga
    @edberaga 2 года назад

    We don't really have to pay something? is there any limitness for this?

  • @sirstegi
    @sirstegi Год назад

    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?

    • @HearsH96
      @HearsH96 2 месяца назад

      Yes
      How else will you get your SSL certificate?

  • @JessPifko
    @JessPifko Год назад

    my hosting site is asking for the "host". Would this be "@"? & "www"? Thanks in advance!

  • @akurti
    @akurti Год назад

    why does private browser shows it correctly and normal browser dont?

  • @kyanite4818
    @kyanite4818 10 месяцев назад

    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?

  • @Ankushdas2001
    @Ankushdas2001 3 года назад

    So cool, can we host dynamic websites as well

  • @panture9561
    @panture9561 3 года назад

    You should do a video about ssdnodes or about static site generator

  • @angaritag
    @angaritag 3 года назад +1

    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

  • @WalmartFan0
    @WalmartFan0 10 месяцев назад

    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

  • @marilyn.g
    @marilyn.g 4 месяца назад

    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.

    • @sairomo6207
      @sairomo6207 Месяц назад

      You need the paid plan to make your repo private while still allowing your site to be visible to other people

  • @conorm2524
    @conorm2524 2 года назад +7

    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!

    • @itierney
      @itierney 2 года назад

      Hey Conor, I'm having same issue on godaddy. Did you find a solution?

    • @Kfoo-dj4md
      @Kfoo-dj4md 2 года назад

      check if you already have a CNAME record on www, and delete it, might help

  • @bhavaytyagi8462
    @bhavaytyagi8462 Год назад

    As soon as I add custom domain to GitHub the enforce https button gets unchecked and Im unable to enforce it. HELP ME!!

  • @dustinjoosen5901
    @dustinjoosen5901 2 года назад

    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!

  • @selormapoh9334
    @selormapoh9334 Год назад

    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?

  • @alfabettabe
    @alfabettabe 2 года назад

    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

  • @Al_Muarid
    @Al_Muarid 10 месяцев назад

    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

  • @blackboxbs8642
    @blackboxbs8642 3 года назад +1

    where do you get those ip addresses?

    • @TonyTeachesTech
      @TonyTeachesTech  3 года назад +1

      Which ones?

    • @blackboxbs8642
      @blackboxbs8642 3 года назад

      @@TonyTeachesTech the one you had to enter in dns records. never mind i had already fixed

  • @salvatoreamaddio2983
    @salvatoreamaddio2983 Год назад

    Hero

  • @minutesensei
    @minutesensei 3 года назад

    how much do we have to wait , 24 hours for it to get live?

  • @BhavaySaarangTyagi
    @BhavaySaarangTyagi Год назад

    Unable to enforce HTTPS please help

  • @efexzium
    @efexzium 2 года назад

    What's the @ for ?

  • @yassinbagane
    @yassinbagane 2 года назад

    i get blank page any solution ?

  • @Luckkify
    @Luckkify 3 года назад

    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?

    • @TonyTeachesTech
      @TonyTeachesTech  3 года назад

      I don't see why a branch wouldn't work (but I could be wrong)

  • @hugoplays8220
    @hugoplays8220 2 года назад

    So I need to buy a domain ?

    • @TonyTeachesTech
      @TonyTeachesTech  2 года назад

      Not necessarily. You can use the free subdomain that GitHub provides like I demonstrate here ruclips.net/video/o5g-lUuFgpg/видео.html

  • @ilovepizza8263
    @ilovepizza8263 3 года назад

    i added all the ip adresses aND the CNAME www to my github account and still issues

    • @TonyTeachesTech
      @TonyTeachesTech  3 года назад

      Uh oh, what's wrong

    • @ilovepizza8263
      @ilovepizza8263 3 года назад

      @@TonyTeachesTech stupid mistake. I did it on a dns setting “template” … not in the actual dns settings for my domain lol.

  • @donaldduckquack2065
    @donaldduckquack2065 2 года назад

    Thank you very much, man. Your effort decreased my effort by a lot.

  • @KatDog-jl3fs
    @KatDog-jl3fs Год назад

    mine is just a white page

  • @harrisandreson
    @harrisandreson 3 года назад +1

    Hi to all

  • @ilovejesus.100
    @ilovejesus.100 2 года назад

    Links is "HTTPS" free?😃

  • @mwbgeometrydashpcaccount6372
    @mwbgeometrydashpcaccount6372 3 года назад

    it won't show the stuff below github pages

  • @siddhant2002
    @siddhant2002 2 года назад

    I want Remove this how can i do that

  • @ThisPossumKnits
    @ThisPossumKnits Год назад

    Good info... but I just can't sub because of the water... 🤣

  • @Rozendox
    @Rozendox Год назад

    why you just jump to google domains?

  • @calvincrane
    @calvincrane 2 месяца назад

    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!

  • @ashishsubhedar3969
    @ashishsubhedar3969 11 месяцев назад

    But the content is Nice.