Is it possible to disable redirection from `.github.io` to custom domain for a sepcific repo?

Hello,

I want to keep original domain IF user originally went through it. And only for a specific repository.

For example,

Expected behavior when redirection is disabled:

  • https://3F.github.io/DllExport/releases/latest/manager/ → keep .github.io
  • https://r-eg.net/DllExport/releases/latest/manager/ → keep custom domain

Expected behavior when redirection is enabled:

  • https://3F.github.io/web.vsSBEhttps://vssbe.r-eg.net redirect to custom domain
  • https://vssbe.r-eg.net → keep custom domain

Is there any option?
Thanks,

Hi @3f, welcome to the GitHub Support Community!

Not if you’ve added your custom domain to your username.github.io repository, no. When you add a custom domain to that repository it replaces all instances of your github.io address for any Pages site hosted from your account. You can still attach other custom domains to your other repositories though.

1 Like

Thank you for a quick reply, Thomas!

You can still attach other custom domains to your other repositories though.

For some cases like 3F.github.io/DllExport/releases/latest/<file> or 3F.github.io/GetNuTool/releases/latest/<file> it will not be a good option because they are just reference some specific latest attachment directly from github release page and doesn’t actually use github pages. Thus custom domains are a bit weird for this.

It would be really nice to see any option in future anyway. I also voted this

Thanks!

I have never tried this one, but I don’t know also what will be the effect.

What if you create several organizations even though you are just alone. For every organization is another separate root domain. I’m sure that it will not affect your user account because GitHub treats that as shared user accounts, so it can’t be tied to a specific user account, even though you are the owner. Hence, you can even customize that with your own custom domain without affecting your user account.