AP_129594
Oct 08, 2013Nimbostratus
Redirect https from non www to www host name
SO I found the iRule to redirect from http://mysite.com to http://www.mysite.com, but if users going directly to HTTPS://mysite.com, they get this page can't be displayed or "ERROR_INTERNET_CONNECTION_RESET". Any suggestion for an iRule to fix this? Here is the irule that currently I use:
when HTTP_REQUEST { if { [HTTP::host] eq "mysite.com"}{ HTTP::redirect "http://www.mysite[HTTP::uri]" }