Forum Discussion
farache_28983
May 14, 2012Nimbostratus
Redirect request to different pools and rewrite the URL
I am trying to write an iRule that will rewrite the URL from a user request to a new URL and and a URI.
The request goes to: site1.com/communities but the content is serv...
Brian_69413
May 16, 2012Nimbostratus
I understand that you are trying to get the traffic to a different pool, but I was asking whether the new pool servers require a different path in order to serve up the same content. For example, if "http://oldsite.com/communities" translates to "http://newsite.com/differentcommunity", then you should do the following:
when HTTP_REQUEST {
if { [HTTP::uri] eq "/communities" }{
HTTP::path "/differentcommunity"
pool pool_b
}
else {
pool pool_a
}
}
My guess is that the new webserver is in fact redirecting the traffic to it's URL since it does not answer to the same PATH...does that make sense?
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