Forum Discussion
dragonflymr
May 19, 2017Cirrostratus
Hi,
Not sure what issue you have. Just attach below iRule to virtual:7777 VS and it should work:
when HTTP_REQUEST {
HTTP::redirect https://publicip:44444/abc
}
Of course assuming that every request to should be redirected to static URI /abc.
If it's not the case use:
when HTTP_REQUEST {
HTTP::redirect https://publicip:44444[HTTP::uri]
}
Be aware that HTTP::redirect is always using 302 Found. If you need 301 then you have to use HTTP::respond, something like that:
HTTP::respond 301 Location "Connection" "close"
adding appropriate headers as needed
Piotr