Forum Discussion

Gregg_Freeman's avatar
Icon for Nimbostratus rankNimbostratus
Aug 10, 2021

Redirtct HTTPS request with multiple embedded URL Statements

I need to redirect the following example to a new website URL.
I need to redirect both URL statements to Using iRules in my F5 load balancer I am able to redirect the first statement but I am unable to figure out how to redirect the second as well.

1 Reply

  • Hi Gregg Freeman,

    when HTTP_REQUEST {
    	if { [HTTP::host] equals "" } {
    		HTTP::redirect[string map "" "" [HTTP::uri]]