Forum Discussion
Mark_S__182830
Jan 15, 2015Nimbostratus
Adding Catchall Behavior to iRule
With the following iRule, when I hit domain.com/ShortName1_Anything here, it will keep the URI portion intact and pass it to the default pool for the VIP. if { [HTTP::uri] eq "/ShortName1*" } {...
Chris_Wentland
Jan 15, 2015Nimbostratus
if { [HTTP::uri] starts_with "/ShortName1" } {
}
elseif { [HTTP::uri] starts_with "/BLAH/ShortName1" } {
HTTP::uri "/ShortName1"
pool CUSTOM_POOL2
}
else {([HTTP::host] contains "sub.domain.com") {
HTTP::redirect "/ShortName1"
}
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