Forum Discussion
Chris_123510
Nimbostratus
Sep 17, 2013Simple URL redirect iRule
I am still very new to iRules, and I am trying to get the code correct for a simple URL redirect. The VS already has an iRule that will redirect traffic from port 80 to 443. Plus, I will need it to w...
Chris_123510
Nimbostratus
Mar 05, 2015You can try this, and by no means am I an expert in this either. If this doesn't work for you, you may want to post your question as a separate question so one of the experts can help.
when HTTP_REQUEST { if {([HTTP::uri] == "/audit-reports/admin/") } { log local0. "PATH MATCH / URI: [HTTP::uri] HOST: [HTTP::host]" HTTP::redirect https://associates.sandboxcernercentral.com/sentinel } elseif { ! ([HTTP::host] contains "1800wxbrief") } { log local0. "PATH MATCH / URI: [HTTP::uri] HOST: [HTTP::host]"
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