Score:1

How to point DNS CNAME to external GitHub Pages domain?

ke flag

I have repository on GitHub with GitHub Pages set up. If I go to myusername.github.io/my-repo everything works correctly. But, I would like to have my own domain name that looks better than that one.

I purchased a domain name: mydomain.site. I created a CNAME record that points www to myusername.github.io. But if I now go to www.mydomain.site/my-repo, I get GitHub's 404 screen. The same happens if I go to just www.mydomain.site.

Ideally, I would like users to go to www.mydomain.site and see the content from myusername.github.io/my-repo, but it would also be acceptable if they had to go to www.mydomain.site/my-repo. I don't want to simply redirect them, my domain name must remain in the address bar. How do I achieve this?

(myusername, my-repo and mydomain are obviously not the real names that I used, I need to keep them private)

tripleee avatar
ar flag
https://docs.github.com/ko/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site
Vlad Mashkautsan avatar
ke flag
@tripleee thanks, that is indeed the fix, although you should post the english version
Score:0
ke flag

I fixed it by putting www.mydomain.site in the custom domain setting in the Pages section of my GitHub repository settings.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.