added support for uri based redirects + custom redirect status code