Forum Discussion
Lee_Sutcliffe
Aug 16, 2019Nacreous
Try this iRule
when HTTP_REQUEST {
if {[HTTP::host] contains ".xyz-dev"} {
switch -glob [HTTP::host] {
"*.net" {
HTTP::redirect https://[string map {"net" "com"} [HTTP::host]][HTTP::uri]
}
default {HTTP::redirect https://[HTTP::host][HTTP::uri]}
}
}
}