Forum Discussion
François_Bégin_
Nimbostratus
Jul 18, 2005Search and replace in HTTP::uri
Once more unto the breach, as they say...
I have some application people that want me to do the following:
Type http://banana.fruits.com/ASF in a brower and you get re-directed to ...
unRuleY_95363
Jul 18, 2005Historic F5 Account
How about this slight enhancement to what you already have:
when HTTP_REQUEST {
set uri [HTTP::uri]
if { $uri starts_with "/ASF" } {
Remove /ASF
set uri [string range $uri 4 end]
Make sure we have at least a "/"
if { $uri eq "" } { set uri "/" }
HTTP::uri $uri
pool app_asfdata_dv
}
}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