Forum Discussion
url redirection to another url hosted on the same F5 device
Hi,
I have a requirement to perform url redirection from url 1 to url 2. Both url's have their VIP configured on the same F5 device.
url 1 : http://abc.xyz.com
url 2: http://pqr.xyz.com/123
I need assistance in configuring policy/irule to achieve the above. any assistance would be greatly appreciated.
Regards,
Babar
- RossVermette
Nimbostratus
You can do a quick irule, some thing like this:
when HTTP_REQUEST { switch [string tolower [HTTP::host]] { "abc.xyz.com" { HTTP:redirect "https://pqr.xyz.com/123" } } }
- Babar_Ansari
Nimbostratus
Hi Ross,
Have already tried the same but it did not work
Regards,
Babar Ansari
- Vijay_E
Cirrus
Use log local0 statements within the iRule to identify if the iRule is being triggered. It will be helpful if you can let us know what is going wrong with the above iRule. May be use curl statements to identify the response for each HTTP Request.
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