adding the legacy url redirect middleware
Adding docs