First of all, adding a slash changes the semantics of the URL path, just like any other character. Therefore, by definition, /foo/bar and /foo//bar not equivalent, since /foo/bar and /foo/bar/ not equivalent.
But since the URL path is mainly used for direct mapping to the file system, web servers often delete empty path segments (Apache does this), so that /foo//bar and /foo/bar treated equivalently. But this is not the expected behavior; rather, it was done to correct errors.
Gumbo
source share