Redirect HTTP::uri doesn't work properly.
Hi,
I have some issues with redirecting.
I have the following rules set up :
when HTTP_REQUEST { if { [HTTP::uri] starts_with "/test" } { HTTP::redirect https://usa.acme.com/something } if { [HTTP::uri] starts_with "/mail" } { HTTP::redirect https://usa.acme/webmail_exchange } if { ([HTTP::host] equals "acme.com") } { HTTP::redirect https://usa.acme.com } if { ([HTTP::host] equals "mail.acme.com") } { HTTP::redirect https://mail.acme.com/webmail_zimbra } }
My issue is with :
} if { [HTTP::uri] starts_with "/mail" } { HTTP::redirect https://usa.acme/webmail_exchange }
I don't know for what reason, the redirection doesn't work properly.
I think the issue might be with the fact that the full URL is the one from URL mail.acme.com.
The user needs to type http://mail.acme.com/mail in order to get to https://usa.acme/webmail_exchange, this one doesn't work, while all other rules work as intended.
Any help will be appreciated.
Thanks, Diez