Forum Discussion

Luca_55898's avatar
Luca_55898
Icon for Nimbostratus rankNimbostratus
Aug 04, 2011

redirect HTTPS to HTTP

So this is backwards from most requests, but i need to redirect anything that comes to a site on HTTPS to HTTP.

Will this do it?


when HTTP_REQUEST {
     if {[HTTP::uri] equals {https://www.site.com/page1}} {HTTP::uri {http://www.site.com/page1}
       }
}