Forum Discussion
greenasp_41938
Nimbostratus
Aug 11, 2009Redirect url by subfolder
We currently have a domain that points to a set of servers (www.abc.com), however, we have a new requirement to have certain sub directories (not all) point to another set of servers. (i.e.- www.abc.c...
Colin_Walker_12
Aug 11, 2009Historic F5 Account
So if you want /content/media to go to the original pool, your above list to all go to the new pool, and everything else to go to the original pool, then you want something like this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/content/media*" {
pool original_pool
}
"/about-us*" -
"/answers*" -
"/logs*" -
"/state*" -
"/press*" -
"/admin*" -
"/users*" -
"/node*" -
"/content*" {
pool new_content
}
default {
pool original_pool
}
}
}
Which is exactly like the two examples above with your new examples added.
Colin
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
