Forum Discussion

Impaler_253590's avatar
Impaler_253590
Icon for Nimbostratus rankNimbostratus
Dec 27, 2017

Need to modify http redirect irule

I am trying to use the below irule for http redirect.

 

when HTTP_REQUEST { HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] log local0. "HTTP to HTTPS Redirect - Client [IP::client_addr]"

 

}

 

After applying this irule to the non prod VIP, it stopped working.

 

Is it possible to modify the irule and add a rule to invoke below URL’s as http .

 

 

  • i think it might be easier if you can provide example e.g. original url and redirected url

     

  • Plaese proivde orgin and destination url your looking for redirect as example.

     

    Tx Srini