Create Rewrite

Dear, I need your help to create an aFlex with a rewrite that does the following: sucusales.mydomain.com to chile.localisti.co
Thanks a lot

Like this:
when HTTP_REQUEST {
if { ([HTTP:host] eq “sucusales.mydomain.com”) {
HTTP:redirect “https://chile.localisti.com
}
}