Forum Discussion
Ravi_Rajan_7549
Nimbostratus
Apr 07, 2008HTTP to HTTPS redirect
Hi,
I want to have an irule to redirect all incoming traffic from http to https, host and the URI remaining the same.
I browsed through the forum and could not find the above. Ple...
Ravi_Rajan_7549
Nimbostratus
May 02, 2008Hi,
I encountering a a peculiar issue here using this irule.
I am using the rule as below -
when HTTP_REQUEST {
if {[matchclass [ string tolower [HTTP::uri] ] contains $::applist]} {
HTTP::redirect https://172.25.100.220[HTTP::uri] }
}
}
Now the issue is -
Applist contains a string of all virtual directories (IIS6) for ex. abc, pqr, test.
now i type the URL http://VIP1/xyz/per/ajskc/test.aspx
By the irule, the above should not match and should not redirect to HTTPS, but it is redirecting to HTTPS.
When i put a log statement in irule for [HTTP::uri], i got this value /xyz/per/ajskc/test.aspx
Can we modify the irule in someway so that i can strip the entire URI and consider only the first part for compare.
Require help urgently.
TIA,
Ravi
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