Forum Discussion
Adil_Khan_31203
Cirrus
Aug 15, 2018Redirect iRule
Hi all,
I am trying to set an iRule to redirect HTTP request to a different URL.
Basically for testing purpose, I created a WideIP which resolves to a WebServer which displays a Blue Page.
I ad...
Samir_Jha_52506
Noctilucent
Aug 15, 2018Try below iRule.
when HTTP_REQUEST {
if { [HTTP::host] contains "testblue" }
{ HTTP::redirect "https://open/open" }
}
Samir_Jha_52506
Noctilucent
Aug 15, 2018Try switch statement to match wildcard.
when HTTP_REQUEST {
switch -glob -- [HTTP::host] {
"*testblue*" { HTTP::redirect "https://open/open" }
default { reject }
}
}
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