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 06, 2015I would do it like this (myself)
switch -glob [string tolower [HTTP::path]] {
"/news*" -
"/favicon.ico" -
"/links*" -
"/downloads*" -
"/offices*" -
"/programs*" -
"/selling*" -
"/wear*" -
"/links*" -
"/images*" {
pool www-landing_pool
}
default {
HTTP::respond 301 location "http://www.myothersite.com/landing.aspx"
}
}
Doing it with a data-group would be much different. Don't have time to address that presently, however. There might be an example in the wiki.
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