Forum Discussion
vvskaladhar_488
Nimbostratus
Nov 29, 2016irule for redirection of url is notworking as expeced.
Hi All,
I have new rule configured
when HTTP_REQUEST {
if { (([HTTP::host] equals ";) or ([HTTP::host] equals "198.x.x.x.")) } {
HTTP::redirect ";
}
}
I have create New V...
Ed_Summers
Nimbostratus
Nov 29, 2016The HOST header includes the hostname only (and service port if non-standard), not the protocol ("https"). Change your HOST test to only "stage.mega.com" (removing protocol and all slashes) and re-test.
Reference: DevCentral Article for HTTP::host
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