Forum Discussion
Using iRule is not the best way to do this, it's better to use the native features of F5 BIG-IP and create LTM Policies.
Reference :
- RaghavendraSYAltostratus
Please try below one:
when HTTP_REQUEST {
if {[HTTP::host] equals "rpm.com "}
{
HTTP::respond 301 "Location" "https://rpm.com[HTTP::uri]"
}
if { [HTTP::host] equals "abc.com" } {
HTTP::redirect "https://xyz.com/test.htm"
}