Forum Discussion
HTTPS getting the uri
I'm trying to do a redirect with iRules that if user goes to https://xxx.xxx/bob it goes to another site. However it doesn't works. It only works if the users goes to http://xxx.xxx/bob. Do you have to do something special for https sites?
when HTTP_REQUEST {
if { [HTTP::uri] ends_with "bob" }
"HTTP::redirect "http://www.google.com" }}
You must apply the iRule to a virtual server that is handling https traffic. Eg that is on port 443.
- Kevin_Davies_40Nacreous
You must apply the iRule to a virtual server that is handling https traffic. Eg that is on port 443.
- Cory_50405NoctilucentIn addition, you'll need to ensure that 443 virtual server is terminating SSL (has a client SSL profile applied to it).
- Kevin_Davies_40NacreousCory is right. It will need to have a HTTP profile attached as well so your HTTP_REQUEST event is triggered.
- Alyson_160947Nimbostratus
thank you guys
Recent Discussions
Related Content
* 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