Forum Discussion
F5 URL to Different URL irule
yogipd I believe the following is what you're looking for. Your first statement about abc.com changing to xyz.com seems a bit off. Did you mean to say that anything going to abc.com you want to redirect to xyz.com or is it only a specific path? Assuming the answer to my questions isn't yes, then the iRule below should work.
when HTTP_REQUEST priority 500 {
if {[HTTP::host] == "abc.com"}{
if {[string tolower [HTTP::uri]] == "/<PATH>"} {
HTTP::redirect "https://xyz.com[HTTP::uri]"
} elseif {[string tolower [HTTP::uri]] == "/ibsc/rrr/logon/login.jsp"}{
HTTP::redirect "https://xyz.com[HTTP::uri]"
}
}
}
yogipd did what Paulius post help you out, or are you still having issues? If it helped, please click the Accept as Solution button on his reply, so future users can easily find the answer they need. 🙂
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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