Forum Discussion
Charlie_Cliffor
Nimbostratus
Dec 07, 2009http vs fasthttp profile using irules
Hi,
I have created a simple URI redirection irule to an application website, which works fine using the Standard VS with the http profile.
However the VS to which is nee...
The_Bhattman
Nimbostratus
Dec 07, 2009Hi 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
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