Adding support for request redirection