Forum Discussion
raf
Nimbostratus
Oct 27, 2019I-Rule Redirect Exception
Hello, Can you please help me merge the following 3 exceptions into one I rule, http://<dns>/*/Raf.Services/* http://<dns>/*/Raf.Rest/* http://<dns>/Raf.Api/* I did the test with...
Oct 27, 2019
Hi,
Can you try this?
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"*/Raf.Services/*" -
"*/Raf.Rest/*" -
"/Raf.Api/*" {
log local0. "--no redirect-- Request : [HTTP::uri]"
}
default {
log local0. "--redirect-- Request : [HTTP::uri]"
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
}
}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
