Forum Discussion
Puli
Nimbostratus
Jul 27, 2010Traversing the URL and matching it with a datagroup
Hi All,
i have a requirement and wondering if you can help me out.
Lets say we have a url:
www.abc.com/aa/bb/cc/dd/ee
and my datagroup has entries for re-directs
aa zz
bb yy
cc xx
dd pp
I need to parse the URL and match each folder.
For example.
take /aa/bb/cc/dd/ee match it with datagroup , if i find a match then re-direct to target
if it does'nt match, strip the last folder from path and match
/aa/bb/cc/dd and match it with datagroup.
I need to go this way till a maximum of 10 loops or exist if i find a match.
I trying to understand whats the best way to handle this requirement without causing major impact to performance.
For a site with 100 hits /sec, i know our bigIP is a beefy machine and can handle but wanted to get some ideas and code snippets that are optimal.
thanks.
Puli.
- hoolio
Cirrostratus
Hi Puli,
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