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