Forum Discussion
clydef_16789
Nimbostratus
Oct 06, 2014Question 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
- clydef_16789
Nimbostratus
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]" }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects