muzammil_88686
Dec 11, 2012Nimbostratus
Optimizing Multiple URL redirections
Dear Dev Team,
I have a request to redirect the below URLs
www.xyz.com/p/cal2013/m1 to www.xyz.com/w/c/MC/SC/CAL2013/m1
www.xyz.com/p/cal2013/m2 to www.xyz.com/w/c/MC/SC/CAL2013/m2
www.xyz.com/p/cal2013/m3 to www.xyz.com/w/c/MC/SC/CAL2013/m3
www.xyz.com/p/cal2013/m4 to www.xyz.com/w/c/MC/SC/CAL2013/m4
www.xyz.com/p/cal2013/m5 to www.xyz.com/w/c/MC/SC/CAL2013/m5
www.xyz.com/p/cal2013/m6 to www.xyz.com/w/c/MC/SC/CAL2013/m6
www.xyz.com/p/cal2013/m7 to www.xyz.com/w/c/MC/SC/CAL2013/m7
www.xyz.com/p/cal2013/m8 to www.xyz.com/w/c/MC/SC/CAL2013/m8
www.xyz.com/p/cal2013/m9 to www.xyz.com/w/c/MC/SC/CAL2013/m9
www.xyz.com/p/cal2013/m10 to www.xyz.com/w/c/MC/SC/CAL2013/m10
www.xyz.com/p/cal2013/m11 to www.xyz.com/w/c/MC/SC/CAL2013/m11
www.xyz.com/p/cal2013/m12 to www.xyz.com/w/c/MC/SC/CAL2013/m12
We already have an exiting iRule for redirection to lot of other URLs and I do not want to add all the above 12 lines of the statements. Rather I would like to add fewer lines. Is it possible to do it with "findstr"?
Could you pls let me know the iRule which I can include in the existing iRule?