Forum Discussion
Hey,
Try this iRule,
when HTTP_REQUEST {
if {([string tolower [HTTP::uri]] contains "/xyz") and [string tolower [HTTP::host]] equals "abc"}{
HTTP::redirect https://xyz;
}
}
Also you can even try F5 Policy to match URI n redirect traffic.
Hope it helps !
Mayur
Hi - this iRule doesn't look like it is redirecting traffic to second VIP. I can get the URL redirection done like your iRule if it needs to go through same VIP, however that's not what I want. Because I'm using different profile settings in second VIP for certain URI, I need it to go through second VIP.
- Mayur_SutareFeb 17, 2020MVP
Check below article.
https://devcentral.f5.com/s/question/0D51T00006i7kHX/irule-to-redirect-to-another-vs-on-the-same-ltm
Hope it helps!
Mayur
- Mayur_SutareFeb 19, 2020MVP
Is your requirement got fulfilled ?
Mayur