Forum Discussion
pgermain_71805
Nimbostratus
Aug 05, 2009URI Rewrite Help
We want to take all requests from a particular IP to a particular URI, and add an additional directory to the URI. We do not want to redirect.
For example, if a request from 2.2.2.2 co...
pgermain_71805
Nimbostratus
Aug 05, 2009Matt,
You are a master. I used that and removed the debugging commands for a short and sweet script.
when HTTP_REQUEST {
if { ([IP::addr [IP::client_addr]/28 equals 216.57.132.112]) and ([HTTP::uri] starts_with "/SOAPAPI") } {
set variables
set newUri [string map {"/SOAPAPI" "/SOAPAPI/barclays"} [HTTP::uri]]
write the new URI to HTTP session
HTTP::uri $newUri
string replace
}
}
Thanks A Million,
Paul
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