Convert iRule from 9.x to 4.x

Need this on a urgent basis.

Following is the iRule that we have implemented on one of our BigIP running 9.x version:

=====================

when HTTP_REQUEST {

if { ([string tolower [HTTP::uri]] eq [ string tolower “/abc/xyz/login.do” ] ) and not ([HTTP::cookie exists “SMSESSION”]) } {

HTTP::redirect “https://thisismysite.com/pqr/login.jsp”

} else {

pool mypool.com

}

}

=====================

Need to implement the same iRule in one of other BigIP’s running 4.x version

Kindly assist.

Thanks,

KD.

Hi Aaron,

Thanks for the reply, but still no luck.

Can you just send me a link for iRule manual for version 4.x and 9.x from where i can download it.

Thanks,

KD.

You can download manuals from AskF5.com. Here is the main 4.x page:

From there, select your version in the upper right hand corner. The 4.x Rules are described in the Reference Guide.

Here is a link to the 4.5.10 version:

BIG-IP Reference Guide v4.5.10: iRules

Aaron