Forum Discussion
stucky101_88485
Nimbostratus
Feb 21, 2013Assign dgl key directly to tcl var instead of having to define value first ?
Gurus
I'm trying to write an iRule that looks through a dgl and left trims strings it finds there from the URI, then redirects to a new url with this trimmed uri.
The following does what I ...
Ian_Smith
Feb 21, 2013Ret. Employee
Have you tried something like this?
when HTTP_REQUEST {
set uri_key [URI::path [HTTP::uri] 1]
if { [class match $uri_key uri_datagroup] } {
HTTP::redirect http://newhost.domain.com/$uri_key
}
}
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