Trailing slashes are added to directory indexes as well as to any URL path not ending in a file extension.