For that many records, I'd use a data group> This way you never have to touch the iRule.
-
Create a string-based data group. Example (my_uri_dg)
"/bob" := "https://weblet.mysites.com/mortgage/default.aspx?ClientID=11039"
"/sue" := "https://weblet.mysites.com/mortgage/default.aspx?ClientID=11039"
-
Create this iRule (modify as required):
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::uri]] equals my_uri_dg] } {
HTTP::redirect [class match -value [string tolower [HTTP::uri]] equals my_uri_dg]
}
}
This will redirect the client to the correct URL based on the request URI.