Rewrite HTTP Redirect Port
Problem this snippet solves: Intercepts server-set redirect responses & removes the server's port from the Location header. Code : when HTTP_RESPONSE {
# Check if server response is a redirect...
Published Mar 18, 2015
Version 1.0hoolio
Cirrostratus
VP of Solutions at WorldTech IThoolio
Cirrostratus
VP of Solutions at WorldTech ITSteve_Janetzke_
Nimbostratus
Apr 02, 2016I have a similar situation, but the redirects are
http://website.test.com/Reports
immediately sends redirect to
http://website.test.com:4433/Reports/Pages/Folder.aspx
If I create a custom http profile, chose the 'All' choice on the 'Rewrite redirects' option and associate it to the virtual server it fixes the port on the redirect, but it also changes the protocol to https.
I thought I would check out fixing this with an iRule since the test developer wants to keep the dev instance http.
I will try this code snippet - thanks Aaron!