Forum Discussion
Martin_Kaiser_1
Nimbostratus
Oct 20, 2005using getfield to split up URIs
Hi there,
can anyone of you show me the correct syntax for using the function getfield in an iRule?
What I want to do is split up an URI like "/webstart/portal/customer_id/some/more/fie...
unRuleY_95363
Oct 24, 2005Historic F5 Account
We also have some URI convenience functions like URI::query. So you can simply write a rule like this:
when LB_FAILED {
set cust_id [URI::query [HTTP::uri] "view"]
if {$cust_id ne ""} {
HTTP::redirect https://some.maintenancesite.com/$cust_id
}
}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
