A
A
AlinaCat2019-03-08 13:06:57
GitHub
AlinaCat, 2019-03-08 13:06:57

Github pages - specify root folder?

How to tell github.io which folder it should consider root? So that the file is not taken from the root of the repository when going to github.io/projectname.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dollar, 2019-03-08
@AlinaCat

It seems you can only root and docs. Other folders are not allowed.
So use /docs
In the settings is selected.

N
Nikita Kiselyov, 2020-09-30
@Goslink

you can create a dummy index.html at the root, and redirect from it to the desired one

<meta http-equiv="refresh" content="0; URL=/folder/index.html" /> //0 - время через которое произойдёт переадресация, URL - непосредственно ссылка

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question