Forum Discussion
80 and 443 redirection
what is the simplest "best practice" way, via an irule, to redirect users from 80 to 443 after ssl offload performed on an LTM?
Apply this iRule to a VIP that is listening on port 80.
when HTTP_REQUEST { HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
3 Replies
- Bhanu_9561
Cirrus
Apply this iRule to a VIP that is listening on port 80.
when HTTP_REQUEST { HTTP::redirect "https://[HTTP::host][HTTP::uri]" } - Kevin_Stewart
Employee
You actually don't even have to do that. Every LTM comes with a built-in HTTP-to-HTTPS redirect iRule called _sys_redirect (or something like that).
- Kevin_Stewart
Employee
Not sure what version of LTM you're running, but if we're talking about _sys_http_redirect, it most certainly does retain the URI.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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