Forum Discussion
Tim_Cahoon_1608
Nimbostratus
Dec 05, 2016If incomming URL does not have specific URI's then redirect to external website
For this application, if an HTTP request doesn't come in with certain specific URI's then we want to redirect it to this Content Management front end in the cloud. I tried doing it this way:
wh...
Dec 05, 2016
Or use the switch statement.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/fmstorefront*" -
"/medias*" -
"/fmwebservice*" -
"/ipows*" {
pool qa.fmmpe-cat.com_80
}
default {
HTTP::redirect "https://d2ipxxe5h4s25e.cloudfront.net"
}
}
}
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