Forum Discussion
tkancianich_925
Nimbostratus
Nov 03, 2008Having issues converting 4.5 irule to v9.3
Not real familiar in creating or manipulating irules. Any assistance would be grateful & much appreciated ,thank you for taking a look!
Here is the rule I need to put on my v9.3 LTM:
if (http_uri contains ".nyk") {
redirect to "http://www2.nykline.com/redirect/SiteDown.html"
}
else if (http_uri contains ".nyks") {
redirect to "http://www2.nykline.com/redirect/SiteDown.html"
}
else {
use pool pSidewinderNAT.80
}
- hoolio
Cirrostratus
This should be equivalent for 9.x:when HTTP_REQUEST { if {[HTTP::uri] contains ".nyk"}{ HTTP::redirect "http://www2.nykline.com/redirect/SiteDown.html" } elseif {http_uri contains ".nyks"}{ HTTP::redirect "http://www2.nykline.com/redirect/SiteDown.html" } else { pool pSidewinderNAT.80 } }
when HTTP_REQUEST { switch -glob [HTTP::uri] { "*.nyk*" - "*.nyks*" { HTTP::redirect "http://www2.nykline.com/redirect/SiteDown.html" } default { pool pSidewinderNAT.80 } } }
- tkancianich_925
Nimbostratus
Thank you Aaron!
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