Forum Discussion
skkg_111590
Nov 18, 2010Nimbostratus
SSL (https) redirection to http.
Hi
Can you please advise me how to redirect https to http.
Below rule is not working
when HTTP_REQUEST { if { [HTTP::uri] eq https://test.com/ } {
HTTP::redirect...
Arrturk_110871
Nov 19, 2010Nimbostratus
Just a couple of questions for my own clarification... if I read the iRule written by hoolio correctly, wont this only redirect root level HTTPS requests (eg. https://test.com/)?
Given the and statement, wouldn't the redirect fail if the trailing slash in the URI was omitted? (eg. https://test.com)
Also, if a request for a nested resource was made, wouldn't that also fail to redirect? (eg. https://test.com/checkout.php).
Would removing the conditional and solve this problem?
when HTTP_REQUEST {
if { [HTTP::host] eq "test.com" } {
HTTP::redirect "http://[HTTP::host][HTTP::uri]"
}
}
I'm still getting my head around iRules, so these are just questions (not trying to tell anyone how to do things)
Cheers üôÇ
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