Forum Discussion
MikeM_44778
Nimbostratus
Feb 02, 2007host redirect problem
I am trying to use a rule that will redirect anyone that hits http://www.testsite.com to redirect https://www.testsite.org
I have tried the following rule: when HTTP_REQUEST {if {[HTTP::...
MikeM_44778
Nimbostratus
Feb 02, 2007figured out the problem - I did need to merge the two as:
when HTTP_REQUEST {if {[HTTP::host] equals "www.testsite.com"} {HTTP::redirect "https://www.testsite.org[HTTP::uri]"} else { HTTP::redirect https://[HTTP::host][HTTP::uri] }}
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
