Hallo iRule Fans
I have a problem with a iRule an hope anybody can help me.
The user logs in to the member are of the website https://website.com/Member
In the member area is a link that calls https://website.com/en/publicsearch
I need a iRule that redirects the URL form HTTPS to HTTP https://website.com/en/publicsearch to http://website.com/en/publicsearch
I have tried the irule but it doesn’t works L
when HTTP_REQUEST {
Save the url/uri so it will be available in the HTTP_RESPONSE
set uri [HTTP::uri]
}
when HTTP_RESPONSE {
if {not ($uri contains “/Member/”)and([TCP::local_port] == 443)}
{
HTTP::redirect “http://$uri”
}
}