Forum Discussion
Randy_Mays_7798
Nimbostratus
May 14, 2010HTTPS Redirect for a specific URL, URI
I have an iRule that I have written that I think will do what I need it to do but would like someone to confirm this, or tell me what's wrong. (Joe is just an example)
when HTTP_REQUEST {
...
Kirit_107311
Nimbostratus
Sep 12, 2013am using the following iRule, it works for https but the else line doesn't take the page back to http. Can anyone assist here? Am I using correct method? I want page to redirect back to http when user move away from /Contact-Us page.
when HTTP_REQUEST { if { [HTTP::host] equals "oaccac-pp.com" and [HTTP::uri] starts_with "/Contact-Us"} {HTTP::redirect "https://[HTTP::host][HTTP::uri]"} else {HTTP::redirect "http//[HTTP::host][HTTP::uri]"} }
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