Forum Discussion
Hannes_Rapp
Aug 05, 2015Nimbostratus
Sorry but this iRule has too many problems to bring out anything in particular. Please modify the iRule below to meet the requirements of your environment.
HTTP_REQUEST {
switch [HTTP::host] {
"mysite.mynet.com" {
HTTP::respond 302 location "https://mynew.mynet.com[HTTP::uri]"
}
"mysite2.mynet.com" {
HTTP::respond 302 location "https://mynew2.mynet.com[HTTP::uri]"
} default {
return
apply no redirect
}
}
}