Github Pages sub-sites

I have a repository at https://github.com/Galaxy-Coding/galaxy-coding.github.io and it is published using Github Pages tohttps://galaxy-coding.github.io/. I would like to addhttps://galaxy-coding.github.io/ SUBSITE to my url without the .html or .htm extension. How would I do that?
Thank you in advance

instead of creating a file titled SUBSITE.html in your root folder, try creating a subfolder named SUBSITE and then put an index.html file inside it, e.g.: SUBSITE/index.html

2 Likes

Great answer but I would like to know i I have several subsites in one folder like:
*/subsite/1
*/subsite/2
*/subsite/3

what are you trying to accomplish?

if you want to have a single folder, SUBSITE, and three files, 1.html, 2.html, 3.html, then you can of course, but you will have to type the full URLs:

  • username github io/SUBSITE/1.html
  • username github io/SUBSITE/2.html
  • username github io/SUBSITE/3.html

if, instead, your goal is to have these three working URLs:

  • username github io/SUBSITE/1
  • username github io/SUBSITE/2
  • username github io/SUBSITE/3

then you can simply put your index.html files with yet another subfolder, each. e.g.:

/SUBSITE/1/index.html
/SUBSITE/2/index.html
/SUBSITE/3/index.html
1 Like