Forum Discussion
Joe_Pena_46781
Jan 25, 2017Nimbostratus
irule and redirect exception
we have a domain bankrate.com that redirects all request to , however need to make an exception for a particular URL NOT to redirect. for example: we do not want to redirect http://bankrate.com/filen...
Charles_Lamb
Jan 25, 2017Nimbostratus
Oh I see. You have multiple switch statements so it must process the first until it find a match and then process the next where as if it were all under the same switch statement it would stop processing once it found a match. You may try using if/else instead of switch.
if your_file_name { do something } elseif host_to_redirect { redirect } else { default behavior }
If you did this it would stop process on that particular event once it matched on your file name thereby never redirecting.
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