For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Wales_113331's avatar
Wales_113331
Icon for Nimbostratus rankNimbostratus
Aug 07, 2014

irule combination for response and redirect

i have an irule on HTTP vs redirecting HTTP to HTTPS which works fine for me. For this redirects the response from the F5 is a 302 i want to change this to a 301 and i want to do this with one irule. The redirect applies to all url and the response code change applies to a specific url.

 

1 Reply

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    How about checking this link:

    http to https

    The example in this link is as follows:

    when HTTP_REQUEST {
      HTTP::respond 301 Location "https://[getfield [HTTP::host] : 1][HTTP::uri]"
    }