Change the URL where your github-pages are hosted

My github pages are currently hosted on:

https://<my_organisation_name>.github.io/<my_repo_name>/

I actually would like to either have a redirect from

https://<my_organisation_name>.github.io/

to

https://<my_organisation_name>.github.io/<my_repo_name>/

OR

to have

https://<my_organisation_name>.github.io/<my_repo_name>/

hosted at

https://<my_organisation_name>.github.io/

Any idea how to do it ?

If you want to publish a site from https://\<organization\>.github.io, then you must name the repository \<organization\>.github.io. So if your site’s repository is currently named my_repo_name and your organization is named my_organization_name you would want to rename the repository at [https://github.com/my\_organization\_name/my\_repo\_name](https://github.com/my_organization_name/my_repo_name) to [https://github.com/my\_organization\_name/my\_organization\_name.github.io](https://github.com/my_organization_name/my_organization_name.github.io)

Let us know if you have more questions!