Forum Discussion
intadm_105683
Nimbostratus
Oct 03, 2007Http_Https_redirect
I would like to create an irule on my LTM unit which enables a redirect from http to https. However, I would to like to append as well anything users types in on url.
Ex. If users types in a.ab.com/abc, the LTM unit would redirect it to https://a.ab.com/abc.
I know on the BigIP, it would be Redirect https://h%/u%. What would be the simlar command on for the Irule on LTM??
Any help would be greatly appreciate.
Thanks.
- intadm_105683
Nimbostratus
Hey Colin... - No slash is needed. HTTP::uri will never be an empty string, it always starts with a slash.
when HTTP_REQUEST { log local0. "Redirecting to https://[HTTP::host][HTTP::uri]..." HTTP::redirect "https://[HTTP::host][HTTP::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