ryan_miller_110
Oct 12, 2006Nimbostratus
HTTP::redirect not rewriting client browser URL
The following iRule is preventing images from displaying in the client browser. The URL in the browser is also not being updated with the 'HTTP::redirect' value. This code is set to redirect any requests not fully qualified (ex> https://209.10.201.33/page.htm should redirect to https://www.somewebsite.com/page.htm as would https://somewebsite.com/page.htm). I also perform this redirect in the HTTPS profile so that when users are redirected to the HTTPS virtual, they are not prompted to accept an SSL cert doesn't match the host name).
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
if { ( $host ne "www.somewebsite.com" ) } {
set path [HTTP::path]
HTTP::redirect "https://www.somewebsite.com$path"
}
}
if I wrap a conditional evaluation that excludes the images class, the images on the page do show up as expected.
I have 2 virtual servers setup. 1 for HTTP, 1 for HTTPS traffic. This rule is associated with the HTTPS pool. This is a brand new 1500, and I am trying to upgrade to these devices from a pair of 540's running v4.5.12.
Any ideas?