HTTPS Redirect for a specific URL using an irule

Scenario

You have a standard HTTP to HTTPS redirection irule which redirects all requests, but you want to make an exception for one URL and leave it on HTTP.

Solution

Apply the following irule to the HTTP VIP in question:

Result

The subdomain.site.com/pages/page1 will not be redirected to HTTPS.

Refererence:

https://support.f5.com/kb/en-us/solutions/public/13000/100/sol13171.html

Leave a Reply

Your email address will not be published. Required fields are marked *