Fix rewriting resulting in requests with '//'
as the beginning of the path.