Forum Discussion
Srini_87152
Cirrostratus
Feb 03, 2016http to https rediect expect [ .*/super/.* ]
Team,
Im looking some redirection rule for http to https except if file url contains ./super/..
If url contains something "./super/." it should go normal without redirection.
Thx
vas ...
Chris_Grant
Employee
Feb 03, 2016Keep in mind that the iRules execute in order, so if you have an irule that says to return if the uri contains /super/ else redirect to https that should do the trick. Something like (warning, I have not tested this): when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/super/*" { return } default { HTTP::redirect https://[getfield [HTTP::host] ":" 1][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