Github页面

编程入门 行业动态 更新时间:2024-10-26 16:22:36
本文介绍了Github页面 - 禁用除一个站点以外的所有站点的自定义域名重定向?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我很久以来一直在使用 github网页,并使用自定义网域重定向功能来重定向我的 user website from prahladyeri.github.io 到我自己的域名 www.prahladyeri ,通过添加 CNAME 文件。

这是否容易实现?

解决方案

截至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页面

本文发布于:2023-10-31 16:43:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1546674.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:页面   Github

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!