Forum Discussion
Joe_Pipitone
May 13, 2010Nimbostratus
I've been able to use an answer from another post to fix this issue.
I appreciate your time and effort in helping me get this resolved - it is greatly appreciated!
It seemed to have worked by using this code:
when HTTP_REQUEST {
if { ([HTTP::host] eq "www.oursite.com") } {
HTTP::redirect "http://oursite.com[HTTP::uri]"
return
}
switch -glob [string tolower [HTTP::uri]] {
"/survey" -
"/survey/" {
HTTP::redirect "http://oursite.com/surveys/"
return
}
"/salarysurveys" {
HTTP::redirect "http://oursite.com/surveys/"
return
}
"/images*" {
HTTP::redirect "http://legacy.oursite.com[HTTP::uri]"
return
}
}
}