Forum Discussion
Redirect / but send to pool if /abc/123.aspx in URL
Still trying to figure out iRules. I understand the basics, but not the more complicated iRules. Here's what I have been tasked with. If a client connects to a site odi.domain.com, it needs to redirect to however, when the user clicks a link on www.domain.com it sends them to odi.domain.com/abc/123/aspx. So, the traffic would hit the same VIP where its being redirected to but needs to be sent to a pool instead of being redirected to www.domain.com.
It needs to be redirected at the root "/", but needs to be sent to a pool if /abc/123.aspx is requested from the VIP.
4 Replies
- JRahm
Admin
is the intent to redirect only odi.domain.com/ to www.domain.com, or do you also want odi.domain.com/abc/123.aspx to go to www.domain.com/abc/123.aspx? - BKA_201457
Nimbostratus
I want to redirect odi.domain.com/ (both http and https)to https://www.domain.com/, but when https://odi.domain.com/abc/123.aspx is requested (its a link from I want it to be sent a specific pool (specific real server) and it will be using the same VIP, because internal DNS will be pointing odi.domain.com to the VIP for odi.domain.com. Does that make sense? Thanks for your help. its much appreciated.
- BKA_201457
Nimbostratus
After doing more research, I thought I would try to explain it better. I would like to redirect everything to except one URL, and I want to be able to get through to the pool.
So something like this.
Redirect everything for odi.domain.com (http and https) to except if https://odi.domain.com/abs/123.aspx is called, and then I dont want to redirect it. I want to allow it through to the pool. Is this possible? Anyone? Anyone? Bueller.... Bueller....
Thanks.
- BKA_201457
Nimbostratus
After testing it more, this is what worked. I actually split it up in two separate iRules.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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