17-Dec-2021 06:13
I am trying to modify the _sys_https_redirect to
but I can't make it work.
when HTTP_REQUEST {
if { ([HTTP::uri] eq "abc.com/directory/directory/") }
{
pool pool-A
}
else
{ HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] }
}
17-Dec-2021
06:29
- last edited on
04-Jun-2023
19:14
by
JimmyPackets
Please try below irule and confirm if it works!
when HTTP_REQUEST {
if { ([HTTP::uri] contains "directory/directory") }
{
pool pool-A
}
else
{ HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] }
}
NOTE- I have kept redirect statement as it is.