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

JMeyer_44695's avatar
JMeyer_44695
Icon for Nimbostratus rankNimbostratus
Nov 19, 2013
Solved

How do I do an HTTPS to HTTP redirect with 301 (permanent)

Client is requesting all requests using HTTPS are redirected to same URI, but to HTTP. Redirect must be a 301.

 

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

2 Replies

  • Richard__Harlan's avatar
    Richard__Harlan
    Historic F5 Account
    when HTTP_REQUEST {
        HTTP::respond 301 Location "http://[getfield [HTTP::host] : 1][HTTP::uri]"
    }