Forum Discussion
Mohammad_1363
Altocumulus
Hello Sanjay
Thanks for your recommendation, is the below one correct an issue with this iRule ?
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "aaaa.com"] ||
[string tolower [HTTP::host]] equals "bbbb.com"] ||
[string tolower [HTTP::host]] equals "cccc.com"] } {
HTTP::header replace "Host" "api.com"
set current_uri [HTTP::uri]
HTTP::uri "/something$current_uri"
pool new pool
#log local0. "URI: [HTTP::uri] Host: [HTTP::host]"
}
}
}
spalande
Aug 13, 2021Nacreous
Please use switch command instead, the one I posted above.