Jeff_Barnett_41
Dec 24, 2014Nimbostratus
URL redirect to another
I am new to the F5 I need to create a simple Irule that redirects one URL to another. here is what I have, that does not work:
when HTTP_REQUEST { if { (([HTTP::host] equals "abc.com/sonar")) } { HTTP::redirect "https://abc.com/sonar/sessions/new?return_to=%2Fsonar%2F" } else {HTTP::redirect https://[HTTP::host][HTTP::uri]} }
But this does not work it only picks up the second condition and redirects http to https. any help would be great.