Forum Discussion

saad_80641's avatar
saad_80641
Icon for Nimbostratus rankNimbostratus
Sep 11, 2009

HTTP redirect to HTTPS (dynamic URL)

Hi ,

 

 

I am redirecting all request that comes on http to https through following irule

 

 

 

when HTTP_REQUEST {

 

HTTP::redirect "https://www.saad.com/saad/default.aspx"

 

}

 

 

But actually the URL grows to

 

 

http://www.saad.com/saad/default.aspx?workspaceID=4

 

 

 

where workspaceID can be 3,4,5,6......n

 

 

Please let me know , if somebody know the answere , I am pretty new to irule

 

 

Please help

 

 

thanks

 

Saad

 

 

 

1 Reply

  • Would something like this work? This will handle your dynamic URI (and hosts, for that matter).

     
      
     when HTTP_REQUEST { 
          HTTP::redirect "https://[HTTP::host][HTTP::uri]" 
     } 
     

    -Matt