Forum Discussion
http redirect with multiple condetion
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]"
}
}
}
Please use switch command instead, the one I posted above.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com