我很久以来一直在使用 github网页,并使用自定义网域重定向功能来重定向我的 user website from prahladyeri.github.io 到我自己的域名 www.prahladyeri ,通过添加 CNAME 文件。但是,对于我维护的开源项目的网页( gh-pages 分支),它会自动重定向 foo 项目到 www.prahladyeri/foo 当没有 CNAME 被指定。是否可以为我的项目使用默认的 prahladyeri.github.io/foo 方案,但为我的主站点保留自定义重定向?
这是否容易实现?
解决方案截至2016年7月,我认为这不是可能。 ( help.github/articles / custom-domain-redirects-for-github-pages-sites / )
Github Pages帮助文章指出:
用户帐户拥有的Project Pages网站(例如username.github.io/projectname)将自动重定向到用户页面网站自定义域的子目录( user.example/projectname),除非指定了不同的CNMAE,例如project.example
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 www.prahladyeri 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/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?
解决方案As of Jul 2016, I don't think this is possible. (help.github/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/projectname), unless a different CNMAE is specified, such as project.example
更多推荐
Github页面
发布评论