Forum Discussion
OmarKhan_249581
Nimbostratus
Sep 05, 2017HTTP to HTTPS Redirection excluding specific HTTP URL
Hi - I have a requirement for following scenario;
Website configured on ASM : Default HTTP to HTTPS redirection;
http://www.abc.com > redirects > https://www.abc.com
Is it possible to...
Jad_Tabbara__J1
Cirrostratus
Sep 05, 2017Hello Omar,
Try the following irule, if starting with "/xyz/ghq.asmx" it will not redirect, otherwise it will redirect to https.
when HTTP_REQUEST {
if { ! ( [string tolower [HTTP::uri]] starts_with "/xyz/ghq.asmx" ) } {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
}
Hope it helps
Waiting for you feedback thanks
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