Forum Discussion
conradberg_1034
Nimbostratus
Jan 28, 2010stripping the beginning / from uri
I need an I rule that will only take affect if the is no "." in the uri, take a url like this:
http://test.com/test and make hit the server like this:
http://test.com/Default.aspx?=test ...
The_Bhattman
Nimbostratus
Jan 28, 2010Hi Conrad,
Here is something that might work
when HTTP_REQUEST {
if {[HTTP::uri] ne "." } {
set uri_string [string tolower [string range [HTTP::path] 1 end]]
HTTP::uri "/Defaut.aspx?=$uri_string"
}
}
Bhattman
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