gpt4 book ai didi

Github 页面 - 禁用除单个站点之外的所有站点的自定义域重定向?

转载 作者:行者123 更新时间:2023-12-04 19:47:03 28 4
gpt4 key购买 nike

我一直在用github pages很长一段时间以来,并使用自定义域重定向功能来重定向我的 user website来自 prahladyeri.github.io到我自己的域名 https://www.prahladyeri.com通过添加 CNAME文件。

但是,对于我维护的开源项目的网页(gh-pages 分支),它会自动重定向 foo项目至 www.prahladyeri.com/foo当没有 CNAME被指定。是否可以使用默认的 prahladyeri.github.io/foo计划为我的项目,但为我的主站点保留自定义重定向?

这很容易实现吗?

最佳答案

截至 2016 年 7 月,我认为这是不可能的。 ( https://help.github.com/articles/custom-domain-redirects-for-github-pages-sites/ )

Github Pages 帮助文章指出

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 页面 - 禁用除单个站点之外的所有站点的自定义域重定向?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35714796/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com