Forum Discussion

Giant_K_333645's avatar
Giant_K_333645
Icon for Nimbostratus rankNimbostratus
Jun 29, 2018

HTTPS Redirect URI to URI

Hi, I have specific Request from the Application Team. They have domain as https://www.abc.com with uri https://www.abc.com/def/ .

 

now they are decommissioning Servers, and they want https://www.abc.com/def/def.asp.

 

I have an iRule.. as below, but does not seem to work,

 

when HTTP_REQUEST{ if {[HTTP::host] equals "; and [HTTP::URI] starts with "/def*"} {HTTPS::redirect ";} }

 

Can you suggest me some other iRULE.

 

1 Reply

  • Untested:

    when HTTP_REQUEST { 
    if { ([HTTP::host] eq "www.abc.com") and ([HTTP::uri] ends_with "/def/") } {
    HTTP::redirect "https://www.abc.com/def/def.asp"
    } 
    }