GitHub Pages offer a free hosting service for static sites.
The setup is simple and concisely described on pages.github.com.
To enable this feature all you have to do is to create a public repo named ${your-github-username}
, e.g. “metters”.
I am hosting my site somewhere else, so I would like to forward from metters.github.io to there.
All I had to do is adding a file named CNAME
containing the url to forward to, e.g. blog.metters.dev
.
Requests to “metters.github.io” are now being forwarded:
Let’s see where the redirect leads to (not without filtering out some noise)
Resources
- Step by step manual, how to set up your own GitHub Page: https://pages.github.com/
- My own GitHub Page using a CNAME file to forward to my own site
- I had to look up the flags for cURL: