Forum Discussion

Srini_87152's avatar
Srini_87152
Icon for Cirrostratus rankCirrostratus
Feb 03, 2016

http 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

 

1 Reply

  • Keep 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] } } }