Github页面 - 禁用除一个站点以外的所有站点的自定义域名重定向? [英] Github pages - Disable custom domain redirection for all but a single site?
问题描述
我很久以来一直在使用 github网页
,并使用自定义网域重定向功能来重定向我的 user website from prahladyeri.github.io
到我自己的域名 https://www.prahladyeri.com ,通过添加 CNAME
文件。但是,对于我维护的开源项目的网页( gh-pages
分支),它会自动重定向 foo
项目到 www.prahladyeri.com/foo
当没有 CNAME $ c时$ c>被指定。是否可以为我的项目使用默认的
prahladyeri.github.io/foo
方案,但为我的主站点保留自定义重定向?
这是否容易实现?
截至2016年7月,我认为这不是可能。 ( https://help.github.com/articles / custom-domain-redirects-for-github-pages-sites / )
Github Pages帮助文章指出:
用户帐户拥有的Project Pages网站(例如username.github.io/projectname)将自动重定向到用户页面网站自定义域的子目录( user.example.com/projectname),除非指定了不同的CNMAE,例如project.example.com
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?
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
这篇关于Github页面 - 禁用除一个站点以外的所有站点的自定义域名重定向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!