Forum Discussion
need to redirect http in https but facing some issue
Hello Harry,
Can you post your redirect iRule? I'm willing to bet that you could change your redirect iRule to ignore certain URIs but seeing the actual iRule would help everyone troubleshoot.
Best of luck,
Austin
Hi , below are both irules: one is applied on HTTP VS and another on HTTPS
Irule—applied in HTTP VS
when HTTP_REQUEST { HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] }
Irule applied in HTTPS VS
when HTTP_RESPONSE { Check if response type is text if {[HTTP::header value Content-Type] contains "text"}{ Replace http:// with https:// STREAM::expression {@@} Enable the stream filter for this response only STREAM::enable } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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