F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

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]"
    }