Forum Discussion

Austin_Geraci's avatar
Feb 05, 2010

One Vs for Redirects

This should be an easy one..

 

 

I want to use one VS for a bunch of redirects, a catch all of sorts.. If for some reason this is a bad idea just let me know.

 

 

The redirect only work for the first entry, the rest fail..

 

 

 

when HTTP_REQUEST {

 

if { [HTTP::host] eq "www.firstdomain.com" } {

 

HTTP::redirect "http://my.firstdomain.com"

 

}

 

elseif { [HTTP::host] eq "www.seconddomain.com" } {

 

HTTP::redirect "http://my.seconddomain.com"

 

}

 

}

 

 

 

 

Much appreciated

43 Replies