Forum Discussion
Shahbaz_Mokaria
Nimbostratus
Oct 17, 2006remove part of hearder
I am trying to change the URL from http://abc.cde.com/xyz/inventory.do?tt
to
http://abc.cde.com/inventory.do?tt
I tried following rule but it changed the whole url to real server behind F5.
when HTTP_REQUEST {
set uri [HTTP::uri]
if { $uri contains "/stores" } {
HTTP::header sanitize "/stores"
}
}
Any help or hint will be appriciated.
Thanks.
2 Replies
- hoolio
Cirrostratus
Hello,when HTTP_REQUEST { set uri [string tolower [HTTP::uri]] if { $uri starts_with "/stores" }{ HTTP::uri [string map -nocase {"/stores" ""} $uri] } }
- Shahbaz_Mokaria
Nimbostratus
It worked!!,
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