How can I stop a github project page (or other subpage) from showing custom domain name?
Asked Answered
A

1

9

I'm using GitHub pages to host my blog. I've set up a CNAME record in the repository and added an A record and CNAME record to my domain registrar (123-reg). This is working fine so now my personal page donskifarrell.github.com -> donalfarrell.com.

This also makes all my project pages map to the same new domain, eg. donskifarrell.github.com/calex -> donalfarrell.com/calex.

While this is quite nice to have, it is proving to be troublesome for one of my projects.

Is there any way to modify my setup so that certain project pages do not use my own custom domain and instead retain the github url?

Thanks

Adjuvant answered 23/8, 2012 at 11:12 Comment(0)
M
4

There isn't really a way to prevent the redirect from happening.

However, if it will help to have that project at a different domain or a subdomain, you can use a CNAME file in the project's gh-pages branch to override your user redirect with a project-specific one.

See more info at the bottom of: https://help.github.com/articles/user-organization-and-project-pages

Mileage answered 12/3, 2013 at 4:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.