Forum Discussion
Puneet_73909
Nimbostratus
May 11, 2009Redirection iRule
Hi,
I need help in writing an iRule. I want to read domain name and then redirect it to specific URL.
For example if HHTP::request is for www.domain.com then it will redirect it to www....
Puneet_73909
Nimbostratus
May 12, 2009CM you are right!!!
This is what I intented top do..I hope this rule will work and also I need to add LB_failed in this so that if my webserver goes unreachable then it will get redirected to maintainance paige. I am unable to do so.
So I need to add another rule saying.....
when LB_FAILED {
if {[active_members [LB::server pool]] > 0 } {
Active Pool
pool "Vs_Server"}
else {HTTP::redirect "http://www1.DomainName.com/ecom/pages/nm/nmhomepage.jsp"}
Fallback path
}
I just want to add this is my previous rule. Is it possible or I have to create another seperate rule and refer it in same Virtual Server. Will it be a best practice to do refer two seperate iRules in same Virtual Server??
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
