Forum Discussion

1 Reply

  • 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):