30-Nov-2020 11:47
Hello teams,
Need helps!!
I want to redirect a host in terms of path
example: xxx.com/abc/jlk to xxx.com/aze, xxx.com/wyc/jlk to xxx.com/aze, xxx.com/oic/jlk to xxx.com/aze .......
For this i want use the datagroup with irule: i created the datagroup that contains all path that i want to redirect.
I also tested with policy LTM but this method works on some browser and not for all path.
So i want use the Irule for this, can you help me pleasee!!!
thank you!
Solved! Go to Solution.
01-Dec-2020 09:34
Hi mika,
If datagroup values contain upper case, replace them. iRule:
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::uri]] equals dg-name] } {
HTTP::redirect "https://xxx.com/aze"
}
}
You can use starts_with instead of equals according to your needs.
01-Dec-2020 09:34
Hi mika,
If datagroup values contain upper case, replace them. iRule:
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::uri]] equals dg-name] } {
HTTP::redirect "https://xxx.com/aze"
}
}
You can use starts_with instead of equals according to your needs.
11-Dec-2020
07:15
- last edited on
24-Mar-2022
02:10
by
li-migration
thank you