how to host a file within a folder in github

Shell
<meta http-equiv="refresh" content="0; url=https://repo.github.io/folder/index.html">

Source

Also in Shell: