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 30, 2017Hi,
In your last link, there are 3 possible URI format:
- Absolute URI including hostname and protocol
- relative URI with absolute path (starting with /)
- other relative URI (path of current URI is used to evaluate path of redirect)
I agree with you and the article author about problems with last solution.
but I think relative URI with absolute path doesn't cause such issues and solve much more issues:
- web server behind a reverse proxy with SSL offload
- web server behind a reverse proxy with internal hostname
- migration of web server name (new company name)
and even F5 uses relative URI in 302 redirect in APM (redirect to /my.policy, /vdesk/hangup.php3, landing URI, ...)
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