Forum Discussion
TNY_122436
Nimbostratus
Dec 11, 2013URL Redirect added to existing rule
How can I add another argument so that we can redirect URL's to execute before the code below? For example, I want to have https://domain1.com/nice/main1 to redirect to https://domain1.com/v. Also to...
Christian_30338
Dec 12, 2013Historic F5 Account
Try something like this....(i haven't tested the syntax)
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/nice/main1" {
HTTP::redirect "https://domain1.com/v"
}
"/nice/main2" {
HTTP::redirect "https://domain1.com/y"
}
"/nice*" {
pool abc
}
"/green*" {
pool abc
}
default {
pool xyz
}
}
}
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