Skip to content

Instantly share code, notes, and snippets.

View JoepKockelkorn's full-sized avatar

Joep Kockelkorn JoepKockelkorn

View GitHub Profile
@JoepKockelkorn
JoepKockelkorn / redirecting-github-pages.md
Created October 8, 2022 12:26 — forked from domenic/redirecting-github-pages.md
Redirecting GitHub pages after a repository move

Redirecting GitHub Pages after a repository move

The problem

You have a repository, call it alice/repo. You would like to transfer it to the user bob, so it will become bob/repo.

However, you make heavy use of the GitHub Pages feature, so that people are often accessing https://alice.github.io/repo/. GitHub will helpfully redirect all of your repository stuff hosted on github.com after the move, but will not redirect the GitHub Pages hosted on github.io.

The solution