Forum Discussion
Andy_McGrath
Jul 02, 2018Cumulonimbus
You can use a Policy for this, which is quicker and easier to manage. If you really want to use an iRule to redirect all request from https://abc.domain.com:8080 to https://abc.domain.com:8444:
when HTTP_REQUEST {
HTTP::redirect https://abc.domain.com:8444[HTTP::uri]
}
If you only want to redirect /productanalytic/ then:
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/productanalytic/"} {
HTTP::redirect https://abc.domain.com:8444[HTTP::uri]
}
}