Forum Discussion
A_tech_85188
Nimbostratus
18 years agoPool 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...
A_tech_85188
Nimbostratus
17 years agoHi,
No the portion of the URI will not always the same length. It could be pool_SAMPLE1, pool_NEWSAMPLE2, or pool_THISISANEWSAMPLE2.
Basically I am trying to get it to match whatever is typed after the slash at the end of the URI. We will make sure we name the pool the same as the subdomain (www.samplesite.com/sample1) a user will be typing in.
So will this set pool_string [string toupper [string range [HTTP::path] 1 7]] match the characters after the slash with the pool name? I am guessing that I would need to set the string range very hi to make sure it will catch all the characters and match them up?
Thanks for all your help on this.
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