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, 2014Fix the statement, But still no luck .. redirecting back home page (https://www.xyz.com)
when HTTP_REQUEST { if { [HTTP::host] contains "xyz.com" or [HTTP::host] contains "10.x.x.x" or [HTTP::host] contains "1x.x.x.x" } { HTTP::redirect https://www.xyz.com[HTTP::uri] } }
- shaggyOct 27, 2014
Nimbostratus
Is a subsequent redirect coming from the server? I use this syntax often in iRules and have no issues (see the _sys_https_redirect iRule for an example of an f5-supplied iRule using the syntax). Have you tried testing from curl or another client that will show you exactly what is coming back from the F5?
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