Forum Discussion
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]" }
- Lee_Sutcliffe
Nacreous
Hi Craig,
I'm not sure I'm following you 100% so correct me if I'm wrong.
is hosted internally on the clients site - not publicly accessible is hosted externally - IS publicly accessible.
You need to redirect from http://www.firsturl.com to https://www.secondurl.com, this does not work.
whereas
https://www.firsturl.com redirecting to https://www.secondurl.com does work.
Is this correct?
- Mike_62127
Nimbostratus
your iRule should work unless you are using "https" in your link to the port 80 VIP.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com