Forum Discussion
Chris_Miller
Jul 29, 2010Altostratus
Unless I'm missing something - this would do this in a much easier fashion.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/salarysurvey" -
"/salarysurvey/" -
"/salarysurveys" -
"/salarysurveys/" { HTTP::redirect "http://oursite.com/salarysurveys/" }
"/images*" { "http:://legacy.oursite.com[HTTP::uri]" } }
if { [HTTP::host] eq "www.oursite.com" } {
HTTP::redirect "http://oursite.com[HTTP::uri]" }
}