Forum Discussion

5 Replies

  • Hello Irshad,

     

    Please try below iRule -

     

    when HTTP_REQUEST {

         

    if { [HTTP::host] equals "test.yourdistributor.com" and [HTTP::uri] equals "/" } {

    HTTP::redirect " https://test1apigw01p.test.com:9022/"

    }

    }

     

    Hope it works for your!

     

    Mayur

  • If not above, try below iRule. This will redirect to the given domain without making any changes in uri part.

     

    when HTTP_REQUEST {

     

       

     

    if { [HTTP::host] equals "test.yourdistributor.com"} {

     

    HTTP::redirect "https://test1apigw01p.test.com:9022[HTTP::uri]"

     

    }

     

    }

    • irshad's avatar
      irshad
      Icon for Nimbostratus rankNimbostratus

      No it is not, Looks to be some issue at server end. will update on this