We have fixed the issue. We had two virtual servers setup. One was listening on port 80 and the other was on port 443. To get it to work we had to make an IRule for the Virtual server on port 80 to redirect any request to https. Then the IRule on the virtual server listening on port 443 would rewrite the uri correctly.
Port 80 IRule:
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
log local0. "redirecting [HTTP::host][HTTP::uri]"
}
Port 443 Irule:
when HTTP_REQUEST {
if {([HTTP::host] equals "myclaytonbenefits.com" or [HTTP::host] equals "www.myclaytonbenefits.com") and
([HTTP::uri] equals "/")}
{
HTTP::uri "https://myclaytonbenefits.com/SHCM/"
}
}
Hope this helps others and I appreciate your help!!!