Forum Discussion
Ken_Norris_1353
Nimbostratus
Oct 09, 2013confirm if iRule will work or not....
can someone please tell me if this iRule will redirect to www.comehereinstead.com if nothere1, nothere2, nothere3, nothere4 are requested? THANKS. (I'm an F5/iRule newbie as of 2 weeks now).
w...
Kevin_Stewart
Employee
Oct 09, 2013Pleas try this:
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"nothere1.com" -
"nothere2.com" -
"nothere3.com" -
"nothere4.com" {
HTTP::redirect "http://comehereinstead.com"
}
}
}
The [HTTP::host] command will only capture the host name and not the protocol (ie. "http://").
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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