Forum Discussion
AP_129594
Nimbostratus
Oct 07, 2013Redirect 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_CONNECTIO...
Kevin_Stewart
Employee
Oct 08, 2013This error is not usually indicative of SSL issues. Are you getting SSL warnings BEFORE this error, or does it just go directly to this? So based on the iRule that you specified:
when HTTP_REQUEST {
if { [HTTP::host] eq "mysite.com" } {
HTTP::redirect "http://www.mysite[HTTP::uri]"
}
}
You're telling the client to go to an HTTP (port 80) URL. Did you mean HTTPS? Did you mean to leave off the ".com" in the redirect URL? Does "www.mysite.com" actually resolve to something in DNS?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects