Skip to content
Discussion options

You must be logged in to vote

Hello @zt64

If you have a custom domain set up for your main GitHub Pages site, any additional repositories you publish using GitHub Pages by default will also attempt to use that custom domain. Unfortunately, GitHub does not provide a direct toggle to disable this behavior for specific repositories. However, you can force a repository to use the default GitHub Pages URL instead.

Solution: Remove the Custom Domain from the Secondary Repository

To make your second repository use the default github.io/repo-name/ format instead of your custom domain:

  1. Go to the repository settings of the second repo.
  2. Navigate to Pages under the Code and automation section.
  3. In the Custom domain field, check i…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by zt64
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pages Host a static website, right from your repo Question Ask and answer questions about GitHub features and usage
3 participants