←back to thread

569 points todsacerdoti | 1 comments | | HN request time: 0.214s | source
Show context
aflukasz ◴[] No.42604808[source]
Nice read.

I wish there was one more paragraph though:

"I don't use trailing slashes in article URLs. Blog post is a file, not an index of a directory, so why pretend otherwise?"

But then it's http://rachelbythebay.com/w/2025/01/04/cruft/ , so I guess they don't agree.

replies(3): >>42606679 #>>42606962 #>>42608188 #
1. tasn ◴[] No.42606679[source]
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).