Forum Discussion
Sulabh_Srivasta
Nov 02, 2022Cirrus
iRule /Policy question
Hello everyone, Please assist me with iRule , I have a scenario where I have to redirect the URL as well as forward traffic to different pools for example: when users hit - www.abc.com/xxxx it sho...
Sulabh_Srivasta
Cirrus
Thanks Kevin, It worked, now I have another requiremen, the rediretion based on http method.
How to configure an HTTP virtual server to redirect based on http method??
Kevin_Stewart
Nov 07, 2022Employee
Use the HTTP::method condition:
when HTTP_REQUEST {
if { [HTTP::method] eq "POST" } {
HTTP::redirect...
}
}
or
when HTTP_REQUEST {
switch [HTTP::method] {
"POST" {
HTTP::redirect...
}
"GET" {
HTTP::redirect...
}
"UPDATE" {
HTTP::redirect...
}
default {
HTTP::redirect...
}
}
}
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