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"
You can also review the free comunity resources:
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: