Forum Discussion
https redirect
Hi Virtual Server http ,F5 redirect to "; with irules "_sys_https_redirect" when HTTP_REQUEST { HTTP::redirect https://mail.xin.com/owa } Now ,Virtual Server https,which irules can redirect to "; when client browser input any https uri.
1 Reply
- VernonWells
Employee
That iRule does exactly what you describe: it extracts the Host header and the Request Target (aka, Request URI) from the incoming request, and sends an HTTP Response with a 3xx code, setting the Location header to "https://[host][request_target]". It does so without discriminating the Host header (or Request Target) value. If you want this done for only a specific Host, then you must use a custom iRule, or better yet, a Local Traffic Policy. See the following iRule recipe for a description of and sample code for selective redirection (as well as a discussion on Local Traffic Policies):
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