Hacker News new | ask | show | jobs
by tasn 533 days ago
Back in the day it used to be the way to do it. Web servers would serve example.com/foo/index.html when visiting example.com/foo/ and it was the easy way of not having example.com/foo.html as your URL.

Later on Web servers made it easier to load foo.html for example.com/foo, but that wasn't always the case.

It's been a couple of decades since I had to do it, but at least that's my memory on why I've been doing this since forever (including on newer websites, which is admittedly a mistake).