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.

In addition, you’ll need to ensure that 443 virtual server is terminating SSL (has a client SSL profile applied to it).

Cory is right. It will need to have a HTTP profile attached as well so your HTTP_REQUEST event is triggered.

thank you guys