Forum Discussion
drew_23351
Nimbostratus
Aug 15, 2014HTTPS to HTTP irule
I'm trying to get an irule to work, but can't figure out what's wrong. What I'm wanting to do is redirect an https request on one url to a http on a different url. The rule that's not working is: ...
Cory_50405
Noctilucent
Aug 15, 2014HTTP::uri will only contain the /coatty portion. somedomainname.com is the HTTP::host. Try this iRule:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/coatty" && [TCP::local_port] == 443 } {
HTTP::redirect "http://somedomainname.com[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