Forum Discussion
Emre_27149
May 09, 2011Nimbostratus
irule redirection issue
Hi,
Incoming client requests to http://xyz.com.tr - (10.x.x.199) distrubutes to the pool httpgw-8086-pool but I want to change the URI when the clinet requests load balanced (exmp: 10.x.x.257:8...
Michael_Yates
May 09, 2011Nimbostratus
The iRule that you have written will mask the URI to the user and send the modified URI to the server.
If you want the User to see the redirect you can modify your iRule slightly.
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
set newuri "/httpgw"
log "Incoming uri - [HTTP::uri] being translated to $newuri"
HTTP::uri $newuri
HTTP::redirect $newuri
}
}
Hope this helps, but if this is not the behavior that you are looking for let me know.
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