Forum Discussion
A_tech_85188
Nimbostratus
May 01, 2008Pool Redirect
Hello All,
I need to setup an irule, but am newbie to irule's.
I need it to do this.
When someone puts in www.samplesite.com/sample1
it directs them to the sample...
hoolio
Cirrostratus
May 07, 2008If you want to get the whole path minus the leading slash, you could either use 'string range [HTTP::path] 1 end', or 'string trimleft [HTTP::path] "/"'.
So all requests to the VIP will only have a path equal to the pool name? Would a client ever request www.example.com/sample1/file.jpg for example? If so, the rule would try to assign a pool of pool_SAMPLE/FILE.JPG. Do you want to get the first part of the URI between the first forward slash and the second? To do that, you could use getfield (Click here):
getfield [HTTP::path] "/" 1
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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