insert www
I have an aflex that inserts www if they come in without it and redirects to https://. it works fine if they come in on http, but does not work if they use https. the aflex is bound to both the 443 and the 80.
http://xyzsite.com (works)
https://xyzsite.com (does not work)
when HTTP_REQUEST {
if {[HTTP::host] starts_with "xyzsite"} {
HTTP::redirect "https://www.[HTTP::host][HTTP::uri]"
}
}
http://xyzsite.com (works)
https://xyzsite.com (does not work)
when HTTP_REQUEST {
if {[HTTP::host] starts_with "xyzsite"} {
HTTP::redirect "https://www.[HTTP::host][HTTP::uri]"
}
}
0
Comments
The redirect does work, I just tried it on my AX. So it must be your matching logic? but you say it works on port 80 though.
The VS is configured for HTTPS, aflex bound, snat, and the Client-SSL is configured and bound to the 443 on the VS. When I first hit the site on the 443 without the www, I get a cert error saying the site cert is for www.xyzsite.com. If i check I understant the risk and accept the cert error, it goes ahead and enters the www. It is acting like it is hitting the ssl and giving the cert error before it runs the aflex.