Forum Discussion
SP_266134
Nimbostratus
Jan 23, 2019redirect http requests to https
Hi Guys,
I have a two vips one is at 443 and another one dummy vip with same address at port 80 for http traffic.
when users go to all works fine. with other vip if user goes http://domain.com, it ...
JG
Cumulonimbus
Jan 23, 2019Try this one:
when HTTP_REQUEST {
if { not ([string tolower [HTTP::host]] starts_with "www.") } {
HTTP::redirect "https://www.[HTTP::host][HTTP::uri]"
} else {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
.
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