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...
Stanislas_Piro2
Cumulonimbus
Nov 05, 2015some changes of irule provided by R Marc...
the - allow to do same action for multiple paths.
when HTTP_REQUEST {
switch -glob [HTTP::path] {
"/clocks.asp" -
"/mysite.aspx" -
"/images/*" {
pool www-mysite_pool
}
default {
HTTP::respond 301 location "http://www.myothersite/mysite.aspx"
}
}
}
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