: Pointing a domain name to a webpage I'm hosting a project page on github at somedude.github.io/thingeroo and I own the thingeroo.com domain name (through 1&1.com). I know that I can set up
I'm hosting a project page on github at somedude.github.io/thingeroo and I own the thingeroo.com domain name (through 1&1.com).
I know that I can set up a CNAME to point from thingeroo.com to somedude.github.io, but can I somehow point to somedude.github.io/thingeroo? If I can’t do this through CNAME entries—and it seems that this is the case—can I do it through some other means?
More posts by @Karen161
2 Comments
Sorted by latest first Latest Oldest Best
If you want thingeroo.com to point to somedude.github.io/thingeroo then this would require github, in this case, to cooperate by acting as a proxy. Fortunately github actually does this! All you have to do is:
Specify an A Record for thingeroo.com that points to the appropriate github server (192.30.252.154 or 192.30.252.153)
Add a CNAME file in your github repo's gh-pages branch with the contents thingeroo.com. This latter step is what allows github to know where to send the requests.
More details on this StackOverflow answer.
CNAME records don't have anything to do with redirecting HTTP requests. They're for host names. You can't use a CNAME record for this purpose.
Fortunately, almost all domain registrars provide a service that will allow you to redirect requests to your domain to somewhere else. They do this by setting your DNS A records to their web servers where a lightweight application receives the request, inspects the Host header, and then redirects the browser to a URL elsewhere.
You can usually find a setting for this on your registrar's control panel, around the same place you find parking pages.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.