Forum Discussion
iRule for redirecting to different uri
hi, ok I replaced my iRule from this one above to see is it working and getting in logs
"< http_request >: sending to oldpool with /url" -
"< http_request >: sending to Newpool with /newurl " -
looks like it is not changing newurl to "/url"? like it should do regarding this statement HTTP::uri "/url" ? or i am wrong?
can not look into my last message because it is not true. I cleared all browser history and got the same result as with my iRules. And we are back to my first question in my first message :)
it is clear from logs. HTTP::uri "/url" statement change URL and it is forwarding one time to new pool, but after that load balancer is forwarding to old pool because i can see in browser my URL was changed also from "; to . And after that load balancer is forwarding as /url to old pool.
< HTTP_REQUEST >: sending to Newpool with /url
< HTTP_REQUEST >: sending to oldpool with /url
iRule changing also URL in browser and this is problem. So this is will not solve my problem at all. My idea that we could send to pool (pool members) changed url (not that one in browser). Not sure is it possible. My logic is like
if { [ string tolower [HTTP::uri]] starts_with "/newurl" } {
pool NEWPOOL
}
this is correct, But lets say NEWPOOL has: server1 server2
so can we send to those server request adding anything like server1/url not depending on what URL we have in browser?
using iRule up here we have something like URL forwarding and it could work, but we have in iRule the same statement, that's why it is not working as we need.
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