Forum Discussion
Andres_Calderon
Nimbostratus
Sep 28, 2006Need help with redirect using iRule
I have one iRule that's currently using a pool.
I need to change this iRule to redirect traffic to a different URL instead of using the local pool.
The current iRule is:
} elseif { [matchclass $my_uri contains $::ps_hrms_uris] } {
pool ps_hrms_ssl_prod
set usessl 1
The data group "ps_hrms_uris" has the following uris:
/hr
/payroll
I need to redirect all the traffic to these uris to a new url.
test.domain.com/hr redirect to: new.domain.com/hr
test.domain.com/payroll redirect to: new.domain.com/payroll
Would the correct syntax to make this change be:
} elseif { [matchclass $my_uri contains $::ps_hrms_uris] } {
redirect to "https://new.domain.com[HTTP::uri]"
set usessl 1
Please Advice.
- Andres_Calderon
Nimbostratus
Aaron - Andres_Calderon
Nimbostratus
Thank you
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects