Forum Discussion
Pradeep_Siwach_
Jul 17, 2012Nimbostratus
HTTPS Request irule
Hi,
We have VS with SSL client profile and the redirection irule configured for HTTP VS.
Currently the site www.xyz.com or xyz.com get redirected to https://www.xyz.com due to irul...
nathe
Jul 18, 2012Cirrocumulus
Pradeep
Would this work for you?
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "xyz.com" } {
Check if there is no uri too
if { [string tolower [HTTP::uri]] eq "" } {
HTTP::redirect "https://www.[HTTP::host]"
} elseif { [string tolower [HTTP::host]] eq "xyz.com" } {
HTTP::redirect "https://www.[HTTP::host][HTTP::uri]"
}
}
}
Hope this helps,
N
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