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...
Robert_Luechte1
Nimbostratus
Apr 29, 2015Try putting a log statement in before the switch statement so you can see the values you are using in the switch.
log local0. "HTTP Host and path is: [string tolower [HTTP::host][HTTP::uri]]"
Also, do you need to check the host portion? Do you have multiple domains that use this IP address?
Robert_Luechte1
Nimbostratus
Apr 29, 2015I'm still confused as to what you are trying to do. Are you saying that you want to do a HTTP to HTTPS redirect for everything except if the URI has the word /pubportal in it? Or are you looking for specific URLs that have /pubportal in them and choosing not to redirect those? Because I'm not sure what you are saying with /pubportal/something or /pubportal/anything. If you can clarify what you are doing it will 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