Osama
Oct 15, 2019Nimbostratus
iRule to Redirect url to anther url
Hi Dears,
requesting your kind support for below scenario.
- I have two VS with the same IP but each one in different ports (1st one in port 80, 2nd one in port 8080)
- I have two pools in ports 80 & 8080 associated to the above VS.
- when the users type the full URL everything working perfectly.
the issue is that:
I have two URLs opening the same application 1st one is http://kmt and the full URL is http://kmt/livetest/livetest.exe?func=llworkspace.
so I need to the users only to write first url http://kmt, then they can redirected to the full url.
I tried below iRule but not opening .
when HTTP_REQUEST {
if { [HTTP::host] eq "kmt" } {
HTTP::redirect "http://kmt/livetest/livetest.exe?func=llworkspace"
}
}
may it's very simple but am new in F5 field.
thanks in advance and appreciate your urgent support.