Forum Discussion
Kevin_Bozman_15
Dec 04, 2014Nimbostratus
Irule redirect on 443 VIP domain.com to www.domain.com
I think I must be missing something simple.
I have an irule setup on my port 80 vip. This works great. If I request http://domain.com/ it will redirect to https://www.domain.com/ and also if ...
Eric_St__John
Dec 04, 2014Employee
You would not want to redirect "www.domain.com" to "https://www.domain.com"
Try this:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "domain.com" } {
HTTP::redirect "https://www.domain.com"
}
}
}
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