I have one iRule that’s currently using a pool.
I need to change this iRule to redirect traffic to a different URL instead of using the local pool.
The current iRule is:
} elseif { [matchclass $my_uri contains $::ps_hrms_uris] } {
pool ps_hrms_ssl_prod
set usessl 1
The data group “ps_hrms_uris” has the following uris:
/hr
/payroll
I need to redirect all the traffic to these uris to a new url.
test.domain.com/hr redirect to: new.domain.com/hr
test.domain.com/payroll redirect to: new.domain.com/payroll
Would the correct syntax to make this change be:
} elseif { [matchclass $my_uri contains $::ps_hrms_uris] } {
redirect to “https://new.domain.com[HTTP::uri]”
set usessl 1
Please Advice.