cancel
Showing results for 
Search instead for 
Did you mean: 

Simple redirection

SOLVED
Highlighted
Occasional Visitor

Simple redirection

I am currently using a simple meta refresh page to redirect from a vanity URL to a real URL, but was thinking it could be done on Stingray instead.  Just want to redirect people from connect.example.com to abc.salesforce.com.

Along same lines, I want to redirect from connect.example.com/name to abc.salesforce.com/name.

Any suggestions on approach or direction to do this would be appreciated.

1 REPLY
New Contributor

Re: Simple redirection

Hi,

You can try this:


if( http.getHostHeader() == "connect.example.com" ) {
   http.changeSite( "abc.salesforce.com" );
}


Hope it helps.