Do you have two VIPs created? One on http and one on https for 10.200.142.121? And you're saying that the redirect works if the HTTPS virtual server is decrypting the traffic? But it fails when there isn't a client and server SSL profile assigned to the VIP? If the above is accurate, I would guess there is some kind of issue with the HTTPS virtual server. When you remove the client and server SSL profiles, are you also removing the HTTP profile? If not, this would cause a connection failure. Can you post the https VIP configuration from the bigip.conf (or run 'b virtual VIP_NAME list') when it's not working?
You can use LiveHttpHeaders for Firefox of Fiddler for IE to see what the client is sending/receiving. To add logging to the iRule, you can use the log statements. Output for local0.* is written to /var/log/ltm by default. You can view this in the GUI under System >> Logs >> Local Traffic or by running 'tail -f /var/log/ltm'.
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: Request to [IP::local_addr]:[TCP::local_port] for [HTTP::uri]"
if { [HTTP::uri] end with "ME" } {
log local0. "[IP::client_addr]:[TCP::client_port]: matched ME, redirecting to https://10.200.132.121[HTTP::uri]"
HTTP::redirect "https://10.200.132.121[HTTP::uri]"
}
}
Aaron