iRule to redirect URL using 8443 to non standard port and pool based on path
We need an iRule using a single VIP that will look at the path and change the port number and use a unique Pool. Here is the logic of how we'd like it to work. I am new to writing iRules and am very green with the F5, so any help would be great.
VIP: URL https://myapplication.mycompany.com:8443/XXXX
IF XXXX = SB13 then change URL to https://myapplication.mycompany.com:8013/SB13 and use POOL_SB13
else IF XXXX = SB14 then change URL to https://myapplication.mycompany.com:8014/SB14 and use POOL_SB14
else IF XXXX = SB15 then change URL to https://myapplication.mycompany.com:8015/SB15 and use POOL_SB15
else IF XXXX = SB16 then change URL to https://myapplication.mycompany.com:8016/SB16 and use POOL_SB16
else IF XXXX = SB17 then change URL to https://myapplication.mycompany.com:8017/SB17 and use POOL_SB17
else IF XXXX = SB18 then change URL to https://myapplication.mycompany.com:8018/SB18 and use POOL_SB18
else IF XXXX = SB19 then change URL to https://myapplication.mycompany.com:8019/SB19 and use POOL_SB19
else IF XXXX = SB20 then change URL to https://myapplication.mycompany.com:8020/SB20 and use POOL_SB20
else IF XXXX = SB21 then change URL to https://myapplication.mycompany.com:8021/SB21 and use POOL_SB21
else IF XXXX = SB22 then change URL to https://myapplication.mycompany.com:8022/SB22 and use POOL_SB22
else IF XXXX = SB23 then change URL to https://myapplication.mycompany.com:8023/SB23 and use POOL_SB23