Forum Discussion

clydef_16789's avatar
clydef_16789
Icon for Nimbostratus rankNimbostratus
Oct 06, 2014

Question regarding Local traffic policy

Any one know of a easier way to configure a policy that says for example. If I got to http://www.abc.com i do not get redirected to https ( I want to keep the http--> https I-rule in place). However, if i go to say http://www.abc.com/helpme I then get redirected to HTTPS.

 

1 Reply

  • Found what I needed when HTTP_REQUEST { log local0. "HTTP URI: [HTTP::uri]" if { not ( [HTTP::uri] equals "/" ) } { log local0. "Redirected to [HTTP::host][HTTP::uri]" HTTP::redirect "https://[HTTP::host][HTTP::uri]" }