Forum Discussion
Need help for an iRule to rewrite the URI value and drop the session which is not matching the URI
Hello All,
I'm in need of help for an iRule to rewrite the URI value and drop the sessions which are not matching the URI value. I have prepared the below the irule and I would like whether the below work as expected
Could you please share your ideas
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] starts_with "/test1"}{
set newuri [string map -nocase {"/test1" "/test2/abc"} [HTTP::uri]]
HTTP::uri $newuri
pool POOL_TEST
}
else {
drop
}
}
Regards,
Thiyagu
- spalande
Nacreous
should work. Are you having any issue in particular with this?
Recent Discussions
Related Content
* 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