Change a URL redirection

Create a rule to change the redirected URL in a 301/302/307 response to something else
For example, match on the response "http://www.orig.domain.com" and change this to "https://www.new.domain.com"