Forum Discussion

craig_m_254946's avatar
craig_m_254946
Icon for Nimbostratus rankNimbostratus
Mar 12, 2018

Can you do Port and URL redirect with iRule

Customer has a VIP configured for port 80 and 443, same IP and URL.

 

The iRule on the port 443 VIP redirects the user to a new URL and works. The iRule on the port 80 VIP redirects the user to the same URL, but also needs to use port 443.

 

https://www.firsturl.com redirects to https://www.secondurl.com http://www.firsturl.com redirects to https://www.secondurl.com

 

is on the customer's F5 is off network and publicly accessible.

 

The issue is that http://www.firsturl.com redirecting to https://www.secondurl.com needs to work off customer network. Everything is working on the customer's network.

 

There are very few differences between the port 80 and 443 VIPs for : port 80 vs 443 port 4434 using a client side SSL profile

 

Both are using the same iRule when HTTP_REQUEST { HTTP::redirect "https://www.secondurl.com[HTTP::uri]" }

 

2 Replies