Forum Discussion
The_Bhattman
Dec 07, 2009Nimbostratus
Hi Charlie,
How about changing it to the following
when RULE_INIT {
Setup initial global variables
set ::cognos_pool "COGNOS-POOL1"
}
when HTTP_REQUEST {
if { [HTTP::uri] eq "/cognos8" } {
set uri [HTTP::uri]
HTTP::uri /cognos84
}
if { [HTTP::uri] starts_with "/cognos8/" } {
set uri [HTTP::uri]
HTTP::uri /cognos84/[string range $uri 9 end]
}
pool $::cognos_pool
}
It's not a redirect but it will change the URI as it passes through the virtual server.
I hope this helps
Bhattman