Forum Discussion
rprague_79440
Feb 11, 2012Nimbostratus
Redirecting https traffic to an https subdomain?
Quick disclaimer, while I know what iRules do, I haven't bothered implementing any, because we haven't really needed to, but laws make things complicated, so we're looking for a way to reroute traffic...
rprague_79440
Feb 14, 2012Nimbostratus
After reading up on it, I think this is right:
class name_dr {
"drtest dr"
}
when HTTP_REQUEST {
set cust [getfield [HTTP::uri] "/" 2]
set drRedir [findclass $cust $::name_dr " "]
if {$drRedir != ""}{
HTTP::redirect "https://dr.domain.com/[HTTP::uri]"
}
}
Going to try to test it Wednesday (taking tomorrow off). If anyone has any pointers, that'd be great 🙂
Thanks for the help!
Ron
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