Thanks ,it seems switch works more effective than if.elseif,else,right?
Any ,I found issue with this irule ,esle should be put behind },maybe it is sensitive to the } position.
if {$uri equals "/"}
{ HTTP::redirect "http://m.srwd32.com/mobile/" }
elseif
{$uri starts_with "/myaccountapi/myaccount"}
{ persist none
pool SRWD32-MYX }
else{ if {$uri starts_with "/mobile/auth" and $port != 443 }
{ HTTP::redirect "https://[HTTP::host][HTTP::uri]"
log local0. "here i am 1 [HTTP::uri]"
}else
{ persist none
SSL::disable serverside
pool SRWD32-STATIC
log local0. "here i am 2 [HTTP::uri]" } } }