Feature request: custom index file in static websites

by default it’s index.html, add option to change that

I don’t think this will happen because that they would need to serve every / request with /index.html which would kill the purpose of “static websites”.

1 Like

that’s how static sites work now


feature I’m requesting is setting to use other file instead of index.html

You can always makes a redirect…

well it applies to the same.

how to redirect in static sites?

Make the actual file and then add a redirect (check https://stackoverflow.com/a/5411601/14264568

You can always hide the index.html later using .gitignore, but that’s actually not recommended

that is not a http redirect

would not work with non-web browsers like wget

That’s true, but it’s a (weak) solution…

1 Like