iRule shouldn’t be reseting connection unless explicitly specified to do so. I would recommend trying to utilize CURL to see if the iRule function is as expected. If possible, provide your iRule and any error you may be seeing in the logs. You can also try and use K13223 to identify ther RST reason.
when HTTP_REQUEST {
if { [class match [HTTP::header "User-Agent"] contains Mobile-Agents] or [HTTP::path] equals "/"} {
HTTP::redirect "https://xxxxx.com/zzzzapp"
}
}