Github pages - Disable custom domain redirection for all but a single site?

风格不统一 提交于 2019-12-10 13:49:25

问题


I've been using github pages since a long time and use the custom domain redirection feature to redirect my user website from prahladyeri.github.io to my own domain which is https://www.prahladyeri.com by adding a CNAME file.

However, for the web-pages (gh-pages branch) of open source projects that I maintain, it automatically redirects a foo project to www.prahladyeri.com/foo when no CNAME is specified. Is it possible to use the default prahladyeri.github.io/foo scheme for my projects, but keep custom redirection on for my main site?

Is that something easily achievable?


回答1:


As of Jul 2016, I don't think this is possible. (https://help.github.com/articles/custom-domain-redirects-for-github-pages-sites/)

The Github Pages help article states that

Project Pages site owned by a user account, such as username.github.io/projectname, will be Automatically redirected to a subdirectory of a User Pages site custom domain (user.example.com/projectname), unless a different CNMAE is specified, such as project.example.com


来源:https://stackoverflow.com/questions/35714796/github-pages-disable-custom-domain-redirection-for-all-but-a-single-site

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!