Forum Discussion
Sam_Parkes_1110
Apr 12, 2007Nimbostratus
Hi Aaron,
Many thanks for your reply - I have tried a version of this, I think my problem is that I want to redirect the host as well as performing a string map to the URI. I've tried this:
elseif { [HTTP::uri] contains "maps.asp"} {
HTTP::redirect http://[string map {mysite.com/maps.asp myredirectedsite.com/VoucherMap.aspx} [HTTP::uri]]
log LOCAL0.info "map rewrite"
}
but cannot get it working, is this because the string map is only applied to the uri, because of the elseif?
Sam.