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 { [class match [string tolower [HTTP::host]] contains *.host1.abc.com redirect] } {
*.host2.xyz.com
#log local0. "Client [IP::client_addr]:[TCP::client_port] -> [HTTP::host][HTTP::uri]" }
}
}