Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

...The only thing that needs to be called index.html is the main file of your game, the one that needs to load in the browser for people to play. But it has to be in the root of the archive, or else all files in the archive have to be in a single subdirectory, including your index.html; it doesn't matter what the subdirectory is called, and in fact calling it "index.html" as well might confuse the server.

Thank you, I actually had a different problem.


When naming, I named the whole file "index.html", while in reality, the file only needed to be called "index", as the ".html" comes from the file itself, not the name. Now it works, thank you for the help.

(+1)

Uh-oh. What happens there is that Windows hides file extensions by default. The .html part doesn't "come from the file itself". There's no such thing. It's the file extension: a part of the filename. It just happened to be set automatically for you when you exported the game.

Tip: set Windows to show file extensions. There's a checkbox hidden somewhere in Explorer's options dialog. You'll thank yourself later.

That said, glad you figured it out. Good luck with your game!

(+1)

I never understood the reasoning behind that feature. It causes problems wherever it is used and contributes to malware spreading. And irritations like this, when someone tries to conform to a filename convention, but literally cannot do this with the feature on.

They should get rid of that default setting. Even when off, Windows is aware of file name extensions, for example when renaming files. There is just no benefit, no benefit at all in hiding, but a ton of problems.

Imagine, if the file were named index.htm instead of index.html. Windows uses the same Icon for those.