Forum Discussion
viper_113332
Nimbostratus
Aug 30, 2010http to https redirect default switch back.........
Hi All,Kind regards
am using the below irule to redirect specific "http" sites to "https", i need to add a switch that will help me direct back to HTTP as well, this could be a default switch. can any body help me in that. actually what i need from the switch is to direct back to HTTP in case the user choose any other path than those specified in the irule. at the moment once a user is redirected to https he keeps browsing the website in https and i need to change it to be http.
when HTTP_REQUEST {
log local0. "path [HTTP::path]"
log local0. "uri [HTTP::uri]"
use -regexp options
switch -regexp [string tolower [HTTP::path]] {
use .* or other reqex expression for the traffic y want to capture "/rado.*" {
log local0. "HTTP_REQUEST switch match"
HTTP::redirect ""
}
}
- naladar_65658
Altostratus
Hello Viper, - viper_113332
Nimbostratus
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