: 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
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.
More posts by @Vandalay111
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.