Mobile app version of vmapp.org
Login or Join
Vandalay111

: Redirect Github project page to a subdomain So I have an organization created in Github and I created a project in that organization. Now I can create the site for this project by creating

@Vandalay111

Posted in: #Cname #Dns #Github

So I have an organization created in Github and I created a project in that organization. Now I can create the site for this project by creating the branch gh-pages and pushing the html files here. I want to point a subdomain to this github pages site. For example, I have a domain called testdomain.com and I want app.testdomain.com should point to github pages located at orgname.github.io/app

I went through the documentation but I can't understand how to make this redirect. Any leads will be helpful.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Vandalay111

1 Comments

Sorted by latest first Latest Oldest Best

 

@Si4351233

You can't redirect to the level you are talking about. You can CNAME the GitHub pages service, and the project pages (through a gh-pages branch) will exist under it but DNS is based only on domain name and there isn't an option to target it to what amounts to a sub folder of the site. Best thing you could do in this instance would be to create a repo orgname.github.io and create an index page in that with a prominant link to the gh-pages sub directory. You could do this with a meta refresh targeting the sub directory but it would have to load to the first page before being refreshed into the new directory.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme