Forum Discussion
Sam10
Jul 23, 2020Altostratus
url redirect irule
I am trying to get an irule working for redirecting a url to a different one. When users connect *.host1.abc.com it needs to redirect to *.host2.xyz.com when HTTP_REQUEST { if { [clas...
Sam10
Jul 23, 2020Altostratus
i tried using the below irule no luck so trying to understand where my logic is failing. If i can get the working irule that would be great
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::host]] contains *.host1.abc.com ] } {
{ HTTP::redirect " *.host2.xyz.com" /[HTTP::uri]
#log local0. "Client [IP::client_addr]:[TCP::client_port] -> [HTTP::host][HTTP::uri]" }
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects