wg
Feb 27, 2020Nimbostratus
irule redirect to new site for http and https traffic
I need to create an irule to redirect traffic to a new site for both http and https.
My current rule is only working for http traffic, could use a hand on this as I don't have much experience with irule creation.
redirect traffic from 123.mydomain.com/random/stuff > abc.mydomain.com/random/stuff
current rule:
when HTTP_REQUEST {
if { [HTTP::uri] contains "/random/stuff/" } {
[HTTP::redirect "https://abc.mydomain.com[HTTP::uri]"
]
}
}