Implements http-redirect.