Forum Discussion
Jeff_Morrison_4
Nimbostratus
Dec 22, 2005HTTP Redicet fails
Created a iRule to redirect to a different URL but the browser never gets the redirect, only the famous Page Cannot be displayed message. In the below rule Customer5 just fails. If I change Customer5 to go to a pool the rule works, only fails on the redirct.
Thanks for you help in advance.
when HTTP_REQUEST {
if { [HTTP::uri] contains "/Customer1"
or [HTTP::uri] contains "/Customer2"
or [HTTP::uri] contains "/Customer3"}{
pool POOL1
} elseif { [HTTP::uri] contains "/Customer4"}{
pool POOL2
} elseif { [HTTP::uri] contains "/Customer5"}{
[HTTP::redirect "https://sdds.businessdatainc.com/controller"]
}
}
- JRahm
Admin
remove the brackets surrounding the redirect:HTTP::redirect "https://sdds.businessdatainc.com/controller"
- Jeff_Morrison_4
Nimbostratus
Thanks for your help....that fixed it!!!
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