Forum Discussion
skkg_111590
Nimbostratus
Nov 12, 2010need 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...
skkg_111590
Nimbostratus
Nov 17, 2010Thanks alot for the help.
I want to create one irule which satisfy both the below conditions
1. http://abc.com/secure/* ----------it should redirect to https://abc.com./secure/* --works all fine. (Thanks for the help guys)
2. https://abc.com/* ---it should redirect to http://abc.com/*-- ( Still not working)
Can you please check my irule
when HTTP_REQUEST { if { [HTTP::uri] contains "secure"} {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
when HTTPS_REQUEST { if {not ([HTTPS::uri] starts_with "/secure")} {
HTTPS::redirect "http://[HTTP::host][HTTP::uri]"
}
Thanks for the help
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