Forum Discussion
stan_peachey_86
Cirrus
Mar 04, 2010iRule: problem modifying uri without a redirect
I'm attempting to do a simple uri modify without a redirect and nothing changes:
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/aaa/bbb/CCC/") } {
HTTP::ur...
stan_peachey_86
Cirrus
Mar 04, 2010Thanks for the cache priority tip citizen. just to keep this post updated, here is an alternative iRule suggested by f5 for uri modification using variables for the rewrite:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/test" } {
set old_uri [HTTP::uri]
log local0. "BEFORE: $old_uri"
set new_uri "/index.html"
HTTP::uri $new_uri
log local0. "AFTER: $new_uri"
}
}
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
