Forum Discussion
Ahmad_03_151082
Nimbostratus
Apr 29, 2015HTTP to HTTPs exclude URLs
Hello
I am facing problem with my iRule which is redirect HTTP to HTTPs
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host][HTTP::uri]] {
"xyz.com/pubportal/something" -
"xy...
Ahmad_03_151082
Nimbostratus
Apr 29, 2015I am facing problem with my iRule which is redirect HTTP to HTTPs
when HTTP_REQUEST { switch -glob [string tolower [HTTP::host][HTTP::uri]]
{ "xyz.com/pubportal/something" - "xyz.com/pubportal/anything"
{ Do nothing }
default { HTTP::respond 302 location "https://[HTTP::host][HTTP::uri]" }
}
}
this iRule to redirect http://xyz.com to https://xyz.com then it should exclude xyz.com/pubportal/something and xyz.com/pubportal/anything from this redirection
but it doesnt work which meant the above iRule redirect everything to HTTPs.
I have two virtual server HTTP and HTTPS
Also i have created an iRule for pubportal on HTTP VS
"/pubportal*" { HTTP::uri "[string range [HTTP::uri] 10 end]" }
I need a help!
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