Forum Discussion
Mike_P_
Nimbostratus
Nov 05, 2015Need help with an irule to redirect with exceptions for certain pages
First time posting here and need some assistance. My company is requesting an irule to redirect certain websites to another site but NOT other portions. Here is an example:
Let's say a user poin...
R_Marc
Nimbostratus
Nov 05, 2015There are a few ways to do this. The easiest way is with a case statement:
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/clocks.asp*" {
do stuff
}
"/mysite.aspx*" {
do other stuff
}
default {
non-special case stuff
}
}
}
If this is something that would grow and be a long standing need for additions, I would advocate something slightly different (utilizing data groups).
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