Forum Discussion
skkg_111590
Nov 12, 2010Nimbostratus
need irule help
I need help as I am new to irule
When user tries to go to
1. http://abc.com/secure/* ----------it should redirect to https://abc.com./secure/* --works all fine.
when HTTP_REQUEST { if { [HTTP::uri] contains "secure"} {HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
Now I want to have another condition that when
2. https://abc.com/* ---it should redirect to http://abc.com/*
Thanks
- nitassEmployee
Please feel free to revise.
curl -I http://172.28.17.120/secure/
curl -Ik https://172.28.17.120/
curl -Ik https://172.28.17.120/secure/
- L4L7_53191NimbostratusAs a footnote: you can use HTTP classes to accomplish the same functionality. If you see a ton of these conditions coming up soon, it may be best to stick with an iRule. But if not, an HTTP class profile may be the way to go.
- skkg_111590NimbostratusThanks alot for the help.
- nitassEmployeei'm afraid that we don't have HTTPS_REQUESt event and HTTPS::uri as well.
- hooleylistCirrostratusYou can use the same HTTP events and commands on an HTTPS VS by adding a client SSL profile to decrypt the SSL and parse the HTTP.
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