Forum Discussion
Sulabh_Srivasta
Cirrus
Nov 02, 2022iRule /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
Nov 07, 2022Thanks 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_StewartNov 07, 2022
Employee
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... } } }
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
