Forum Discussion
rajesh1
Nimbostratus
Apr 12, 2010Irules - Help
Hi,
I need some assistance in writing an irule
for the following requirement for the http requests
1)Http://xyz.com redirect to "http://www.xyz.com"
2)If all the pool...
Cspillane_18296
Nimbostratus
Apr 13, 2010Hello Raj,
I haven't tested this but the following may do what you require:
when HTTP_REQUEST {
if { [HTTP::uri] equals "xyz.com"} {
HTTP::redirect "http://www.xyz.com"
}
}
when LB_FAILED {
HTTP::redirect "http://www2.xyz.com"
}
You can probably get rid of the 'LB_FAILED' bit and just use a fallback host in the http profile instead.
let me know how you get on!
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
