Forum Discussion
Gurinder_Singh_
Nimbostratus
Oct 27, 2014Nedd help with https redirect
Hello Guys,
I need help with iRule.. I have created specific ip for redirection for my web site from http to https (even if contain IP).
Here what I did
when HTTP_REQUEST {
if { [H...
Gurinder_Singh_
Nimbostratus
Oct 27, 2014Thanks Shaggy..but it's still redirecting back to home page.
here is what is did
when HTTP_REQUEST { if { [HTTP::host] contains "xyz.com" or "10.x.x.x" or "1x.x.x.x" } { HTTP::redirect https://www.xyz.com[HTTP::uri] } }
let me know if i am doing it right?
Thanks, GSingh
- shaggyOct 27, 2014
Nimbostratus
The redirect portion looks correct, but the if statement looks off: if { [HTTP::host] contains "xyz.com" or [HTTP::host] contains "10.x.x.x" or [HTTP::host] contains "1x.x.x.x" }
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