Forum Discussion
fletcher_61042
Nimbostratus
Aug 17, 2007need a simple rule
I have never worked on big ip b4 and I am not able to write scripts so good. I got tossed into managing the BIG ips here and i am looking forward to the challenge.
I need a very simple rule...
Deb_Allen_18
Aug 17, 2007Historic F5 Account
Looks good, although you might want to make your comparison case-insensitive:
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals www.testa.com} {
use pool testa
} else {
HTTP::redirect http://testb.com[HTTP::uri]
}
}/deb
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