Forum Discussion
skkg_111590
Nimbostratus
Nov 18, 2010SSL (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 "http://[HTTP::host][HTTP::uri]"
}
}
Any help will be appreciated.
Thanks
4 Replies
Sort By
- nitass
Employee
https://test.com/ - hoolio
Cirrostratus
As Nitass suggests, you could use the HTTPS to HTTP redirect on an HTTPS VS by checking for a Host of test.com and a URI of /:when HTTP_REQUEST { if { [HTTP::host] eq "test.com" and [HTTP::uri] eq "/" } { HTTP::redirect "http://[HTTP::host][HTTP::uri]" } }
- skkg_111590
Nimbostratus
Thanks alot NITASS AND HOOLIO - Arrturk_110871
Nimbostratus
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/)?when HTTP_REQUEST { if { [HTTP::host] eq "test.com" } { HTTP::redirect "http://[HTTP::host][HTTP::uri]" } }
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