Mobile app version of vmapp.org
Login or Join
Karen161

: 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

@Karen161

Posted in: #Cname #Dns #WebHosting

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?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Karen161

2 Comments

Sorted by latest first Latest Oldest Best

 

@Deb1703797

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.

10% popularity Vote Up Vote Down


 

@Cugini213

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme