Forum Discussion
Michael_Yates
May 09, 2011Nimbostratus
Hi DM,
I believe that this will do what you are needing.
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "www.test.com" } {
HTTP::redirect "https://www.test.123.com/[HTTP::uri]"
return
}
else {
HTTP::redirect "https://[getfield [HTTP::host] ":" 1][HTTP::uri]"
}
}