Forum Discussion
Nick_Coelho_338
Nimbostratus
Mar 03, 2007iRule works but getting browser error, help!
need an iRule that looks for trafficui and gives pool but if it does not see trafficui it looks for the hostname and redirects
it seems to work but i get errors on the "test1.com" links. bet...
Nick_Coelho_338
Nimbostratus
Mar 04, 2007you think this is better than the if, elseif?
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] starts_with "/trafficui" } {
pool PoolOne
else {
switch -glob "[HTTP::host][HTTP::uri]" {
"*test1.com/" {
HTTP::redirect "http://www.test1.com/trafficui/mscui/page.aspx?cid=1&ptid=10"
}
"*test2.com/" {
HTTP::redirect "http://www.test2.com/trafficui/mscui/page.aspx?cid=1&ptid=10"
}
default {
HTTP::redirect "http://test3.com/TrafficUI/mscui/page.aspx?cid=1&ptid=4&utcoffset=5"
}
}
}
}
what i'd like to do with this one is *.test1.com/ (starts with anything other then traffcui) HTTP::redirect blahblah
is it possible?
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