Warm tip: This article is reproduced from serverfault.com, please click

deploying webpage to github where html file is in templates folder

发布于 2020-11-28 05:18:46

I am attempting to deploy a webpage to github pages where the index.html file is not in the root directory, but in the templates folder. As a result, I keep getting a 404 error page whenever I try to access the url. how can I upload a webpage where the html file is not in the root of the project?

Questioner
azan_bade
Viewed
0
Ellie Lockhart 2020-11-28 13:32:52

GitHub Pages is a fairly limited hosting service, although nice for what it does. Is there a particular reason why you can't simply move index.html to the root directory? I know these things can be a pain, but I believe the parser that GHP uses is pretty strict about this.