Search code examples
gitgithubgithub-pages

Redirect my main GitHub page to another repository of mine


Currently my page on GitHub is something like:

https://my_user.github.io

I have a repository with this URL published, and it can be accessed from anywhere.

https://my_user.github.io/cv/#!/home

I would like that when any person access to my personal GitHub URL, it will be redirected to my repository. When I access https://my_user.github.io , I must be redirected to https://my_user.github.io/cv/#!/home

How can I do it?


Solution

  • Root namespace https://my_user.github.io is shown from https://github.com/my_user/my_user.github.io repository. You can put there an index.html with HTML redirect:

    <meta HTTP-Equiv="Refresh" content="0; URL=https://my_user.github.io/cv/#!/home">