Forum Discussion
yugraj_rai_1230
Nimbostratus
Apr 15, 2014HTTPS Traffic to redirect into HTTP
When accessing URL https://www.abc.com/404.php but HTTPS is not enabled so please help me to redirect to http for URL
Thanks in advance
Yugraj Rai
MW_97676
Nimbostratus
Apr 15, 2014If this is a response coming from the back end server you are load balancing you could apply a stream profile and use an irule to replace the URL:
when HTTP_RESPONSE {
STREAM::expression {@https://www.abc.com/404.php@http://www.abc.com/404.php@}
Enable the stream filter for this response only
STREAM::enable
} else {
Disable the stream filter by default
STREAM::disable
}
}
- MW_97676Apr 15, 2014
Nimbostratus
Sorry missed some of the irule when HTTP_RESPONSE { Check if response type is text if {[HTTP::header value Content-Type] contains "text/"}{ STREAM::expression {@https://www.abc.com/404.php@http://www.abc.com/404.php@} Enable the stream filter for this response only STREAM::enable } else { Disable the stream filter by default STREAM::disable } }
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