iRule HTTPS(443) to HTTPS(8701)

I am having difficulty finding a iRule or creating that would auto route HTTPS(443) to HTTPS(8701).

I have set up HTTP(80) to HTTPS(8701) that was pretty straight forward using this

when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1]:8701[HTTP::uri]
}

Any help will be greatly appreciated.

I think it should be:

when HTTP_REQUEST {

HTTP::redirect https://[getfield [HTTP::host] “:” 1][HTTP::uri]:8701

}

if there are issues also test

when HTTP_REQUEST {

HTTP::redirect “https://[getfield [HTTP::host] “:” 1][HTTP::uri]:8701”

}

Also see:

You can also use Local Traffic policy myF5 and I think this way it will be better.

Hey  Thanks for your reply. We were able to resolve the issue. One of our team members was able to get that working. :grinning_face: