what about this one?
config
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.24.10:0
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
rules {
qux
}
source 0.0.0.0/0
source-address-translation {
type automap
}
translate-port disabled
vs-index 60
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule qux
ltm rule qux {
when RULE_INIT {
set static::uri "/myBlock.Profile.com/Pages"
set static::uri_lower [string tolower $static::uri]
}
when HTTP_REQUEST {
set uri [HTTP::uri]
set uri_lower [string tolower $uri]
if { $uri_lower eq $static::uri_lower } {
if { $uri ne $uri_lower } {
HTTP::redirect "http://[HTTP::host]$uri_lower"
}
}
}
}
test
[root@ve11a:Active:In Sync] config curl -I http://172.28.24.10/myBlock.Profile.com/Pages
HTTP/1.0 302 Found
Location: http://172.28.24.10/myblock.profile.com/pages
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
[root@ve11a:Active:In Sync] config curl -I http://172.28.24.10/myblock.profile.com/pages
HTTP/1.1 404 Not Found
Date: Wed, 06 Aug 2014 14:38:41 GMT
Server: Apache/2.2.3 (CentOS)
Content-Type: text/html; charset=iso-8859-1