Hi Rakesh,
if the iRule above does not work at all, then I would recommend to include some Debug-Log line to make sure the iRule gets executed...
when HTTP_REQUEST {
log local0.debug "Debug: iRule executed"
if { [string tolower [HTTP::host]] equals "sfobjtest.govnet.nsw.gov.au" } {
log local0.debug "Debug: [string tolower [HTTP::host]] is matching the pattern"
HTTP::respond 301 Location "sfobjtest.govnet.nsw.gov.au:8443//documents"
} else {
log local0.debug "Debug: [string tolower [HTTP::host]] is not matching the pattern"
}
}
Note: Keep in mind, that almost every configuration change requires you to close any existing TCP-session. So better close/open your browser between the individual tests to get sure...
Cheers, Kai