Assign root domain ke website dan redirect ke www
Pertama, Tambahkan A record dengan IP dari github (IP dapat dari referensi)
Tambahkan CNAME untuk subdomain www
www
Agar ketika domain utama diakses redirect ke www, tambahkan Pages Rules
Terakhir tambahkan custom domain pada github pages, tujuannya agar ketika domain lama diakses akan redirect ke domain baru.
https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site?platform=linuxarrow-up-right
https://docs.github.com/en/pages/getting-started-with-github-pages/securing-your-github-pages-site-with-httpsarrow-up-right
https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pagesarrow-up-right
https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/troubleshooting-custom-domains-and-github-pagesarrow-up-right
https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-sitearrow-up-right
Last updated 1 year ago