Forum Discussion
rajesh1
Nimbostratus
Apr 09, 2010Irule for Http redirect
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 members are down - redirect...
hoolio
Cirrostratus
Apr 12, 2010Hi Raj,
You can check the requested host using HTTP::host. You can send a redirect using HTTP::redirect "http://www.example.com/". You can use HTTP::fallback to set the fallback host. It would probably make sense to combine all of the logic in one rule.
http://devcentral.f5.com/wiki/default.aspx/iRules/http__host
http://devcentral.f5.com/wiki/default.aspx/iRules/http__redirect
http://devcentral.f5.com/wiki/default.aspx/iRules/http__fallback
Aaron
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
