hi,
i’m new to F5 so hopefully this is a quick one.
currently I have a 443 irule setup as follows:
when HTTP_REQUEST { switch -glob [string tolower [HTTP::host]] { “qv-emea.brightstar.com” { if { [HTTP::host] contains “qv-emea.brightstar.com” } { pool Pool_qv-emea_4401 return } else { reject } }
I have an issue where you hit the url and it’s redirecting to the IP and not site name. if I add a / at the end of the url it works ok.
therefore, how do I amend the above to re-direct from https://xxxxx.com/qlikview to https://xxxxx.com/qlikview/ ? I was thinking I need another IF statement to say { if { [HTTP::uri] start_with “/qlikview” } { HTTP::redirect “https://xxxxx.com/qlikview/?[URI::query [HTTP::uri]]” } }
also, assuming I have to re-write the host header to get it from ip to site name? if so, can anyone please assist me in getting the irule to do all the above?
any assistance would be really appreciate
thanks in advance,