irule - redirecting www.medpoints.bankmed.com.lb to https://medpoints.bankmed.com.lb

Hello,

I’m trying to apply an irule to redirect medpoints.bankmed.com.lb and to https://medpoints.bankmed.com.lb

when HTTP_REQUEST { if {([string tolower [HTTP::host]] contains “medpoints.bankmed.com.lb”) } { HTTP::redirect "; }}

its working for medpoints.bankmed.com.lb (redirection to https successful) but for some reason redirection is not working from to https://medpoints.bankmed.com.lb

Thanks in advance.

Best Regards, Ralph El Habr

  1. for my point of view it’s better and easier to use local traffic polices to make this kind of redirection

  2. Have you tried add * before medpoints.bankmed.com.lb or star and dot ?

Dear Piotrek, what do you mean by local traffic policies ? As well contains should be okay without having to add *

please take a look on the links

or