Eddy_161863
Oct 06, 2015Nimbostratus
f5 URL redirection
I am trying to setup a redirect based on the host in the URL. Is there any way to match two host values in the url and if it matches one of the condition, then redirect. I only want to change the host value in the redirect and want to keep the URI as is. I have setup an iRule something like this:
if { (([string tolower [HTTP::host]] equals "abc") || ([string tolower [HTTP::host]] equals "abc/")) } {
HTTP::redirect "http://abc.xyz.com[HTTP::uri]" }
It seems to me that it only works well for first condition but not for second condition. Am I doing something wrong or the syntax is different for v11?
Any help would be really apprecited.