if the client has requested /foo, and foo is actually a directory, this redirects the client to /foo/