Should we always add the final / or avoid it ?
Does it make a difference ?
|
feedback
|
|
No difference between them. (As opposed to not putting a slash on links into a directory, for example.) I don't think I've ever seen anything saying that you should or shouldn't, though being consistent in your own behavior is generally not a bad idea, either. | |||||||
feedback
|
| |||||
feedback
|
|
The other answers have identified that it doesn't seem to technically matter. For me it is a matter of perception, if there is a trailing slash I'd expect something to be following it, a file name, an anchor. I also think a lack of a trailing slash looks cleaner. | |||
|
feedback
|
|
It's a matter of Apache configuration (can't say about others) Some Apaches can't handle site/path as site/path/index.file Semantically both URL declare the same resource | |||||||||||
feedback
|