Description
Redirects all traffic to same hostname, same URI over https by issuing a redirect with status 301 (Moved Permanently). You can check the status code to a 302 to issue a non-cacheable redirect.
Apply to HTTP virtual server to redirect all traffic to same hostname (stripping port if it exists), same URI over HTTPS. (Do not apply to shared/wildcard virtual server responding to HTTPS traffic, or infinite redirect will occur. Create separate virtual servers on port 80 and port 443, and apply this iRule ONLY to the port 80 HTTP-only virtual server. No iRule is needed on the port 443 HTTPS virtual server.) (更多…)