Is it possible to publish a project page to http://username.github.com/ instead of http://username.github.com/projectname?
Asked
Active
Viewed 1,911 times
2 Answers
5
Create a repository called username.github.com and it will automatically be used as your top-level page.
jrbalsano
- 794
- 6
- 18
2
Note that since April 2013 ("New GitHub Pages domain: github.io"):
- User Pages repositories may now be named using the new
username/username.github.io - Existing User Pages repositories named like username/username.github.com do not need to be renamed and will continue to be published indefinitely.
- If both a username.github.io and a username.github.com repository exists, the username.github.io version wins.
So the solution is still valid, but be aware that:
If your Pages site was previously served from a
username.github.comdomain, all traffic will be redirected to the newusername.github.iolocation indefinitely, so you won't have to change any links.
For example, newmerator.github.com now redirects to newmerator.github.io.
VonC
- 1,129,465
- 480
- 4,036
- 4,755