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...
Stanislas_Piro2
Cumulonimbus
Apr 29, 2017Hi Kevin,
I recommend to always redirect with relative URL instead of absolute when possible (same hostname and protocol).
if { [HTTP::uri] equals "/" } {
HTTP::redirect "/SAM"
}
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