IRULE to redirect HTTP response port

i want to create IRULE to make port redirection to my VIP port at HTTP response.

Website_VIP : 10.1.1.200:2006

and when i access this website , it redirects me to “10.1.1.200:2006” with HTTP Response code 302, but this vip isn’t exist, so i want to create irule to redirect me again to my VIP.

You haven written well your question and I don’t get what you want, still I see that you have many posts for basic irules so I recommend taking the F5 course “Developing iRules for BIG-IP”

https://www.f5.com/services/training/training-courses-and-classes/developing-iRules-for-BIG-IP

You can also review the free comunity resources:

https://devcentral.f5.com/s/articles/irules-101-01-introduction-to-irules

Hi,

i think i got what you want look here is an irule example in case of redirection (302):-

when HTTP_RESPONSE { if {[HTTP::status] == “302” }

{ HTTP::header replace Location [string map {“myserver.domain:4443” “myserver.domain”}[HTTP::header Location]] }}

You got the idea from the free f5 course 101 https://devcentral.f5.com/s/articles/irules-101-14-tcl-string-commands-part-2 ?

The F5 community as I mentioned has very nice free learnings for irules and I found a link that and there is even a new version of the 101 course:

https://devcentral.f5.com/s/articles/doing-that-thing-we-do-again-introducing-the101