Forum Discussion
Stuart_Feathers
Nimbostratus
Sep 28, 2012Redirect with multiple conditions
I am doing a HTTPS redirect for all of the sites at my domain. I need to make an exclusion for 2 sites so that they can be access via HTTP.
For example, any traffic to http://www.abc.com...
Stuart_Feathers
Nimbostratus
Sep 28, 2012Thank you for the reply What Lies Beneath.
Before I saw your reply I figured out the problem. I was able to get it to work by using the following code. Again, THANKS!!
when HTTP_REQUEST {
if { not (([string tolower [HTTP::uri]] starts_with "/site1") || ([string tolower [HTTP::uri]] starts_with "/site2")) } {
HTTP::respond 301 Location "https://www.abc.com[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