Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 436
Prahlad Yeri Avatar asked Sep 25 '22 05:09

Prahlad Yeri


1 Answers

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
like image 195
StephenG Avatar answered Oct 12 '22 11:10

StephenG